代码仓
中
Set Info
更新时间: 2025/06/26
在AtomGit上查看源码

40h-设置信息(Set-Info) ​

修订记录 ​

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息 ​

功能说明 ​

设置信息。

权限 ​

命令信息 ​

请求信息 ​

字节顺序域取值说明
NetFn30h
CMD40h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4sub command
[Bit 0]:
0 -> Write
[Bit 1-7]:
0x00 ->Cpu Info
0x01 ->Mem Info
0x02 ->HardDisk Info
0x03 ->Pcie Info
….
5:6Record ID, LS Byte first(start form 0)
7:NInfo,具体见信息内容定义的属性部分

响应信息 ​

字节顺序域取值说明
1Completion Code
80h=parameter not supported.
81h=attempt to set the 'set in progress' value (in parameter #0) when not in the 'set complete' state. (This completion code provides a way to recognize that another party has already 'claimed' the parameters)
82h=attempt to write read-only parameter
83h=attempt to read write-only parameter
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5:6Next Record ID, LS Byte first (return FFFFh if the record just returned is the last record.)
Note: FFFFh is not allowed as the record ID for an actual record. I.e. the Record ID in the Record Data for the last record should not be FFFFh
7:NRecord Data, 16 bytes for entire record

命令样例 ​

设置信息 ​

请求:

ipmicmd -k "0f 00 30 40 db 07 00 02 00 00 00 01" smi 0

响应:

0f 31 00 40 00 db 07 00 * * * * * * * * * * * * * * * * * *

示例假设命令执行成功(完成码00)。请求按“获取信息”中的内存属性定义写入记录0:Box_ID为0,容量为1 GB。每个 * 表示1个由设备返回的字节:先是低字节在前的2字节下一条记录ID,再是响应表定义的16字节记录数据。

返回到索引 ​