Get Info
更新时间: 2025/06/26
在Gitcode上查看源码40h-获取信息(Get-Info)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
获取信息。
权限
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 40h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | sub command [Bit 0]: 1 -> Read [Bit 1-7]: 0x00 ->Cpu Info 0x01 ->Mem Info 0x02 ->HardDisk Info 0x03 ->Pcie Info …. |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion 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:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 5:6 | Next 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:N | Info Data |
命令样例
获取信息
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN附表1 Info
| - | 表项 | Length(bytes) | 描述 |
|---|---|---|---|
| Cpu Info | CPU个数 | 1 | N对应本次传送的CPU属性个数,信息总长度超过定义的载体长度时,分多次传输。 |
| CPU n属性 | Box_ID | 1 | 编号 |
| CPU_Type | 1 | 0=x86 1=Itanium | |
| BrandID | 2 | 处理器代号(如9300) | |
| BrandString | 8 | 处理器代号字符串,如“Tukwila” | |
| CPUS | 1 | CPU核数 | |
| Sockets | 1 | 系统里Sockets总个数 | |
| Cores | 1 | 每Sockets的Core个数 | |
| Threads MAX_Freq | 1 2 | 每Sockets的Thread个数 最高频率(MHz)LS Byte first | |
| Mem Info | Num | 1 | 内存个数 |
| 内存n属性 | Box_ID | 1 | 编号 |
| Memory_Size | 1 | 内存大小,以GByte为单位 | |
| HardDisk Info | Num | 1 | 硬盘个数 |
| 硬盘n属性 | Box_ID | 1 | 编号 |
| Memory_Size | 2 | 大小,以GByte为单位,LS Byte first | |
| Speed | 2 | 转速,LS Byte first | |
| PCIe Info | Num | 1 | PCIE个数 |
| PCIE n属性 | Box_ID | 1 | 编号 |
| Capability | 1 | X4还是X8、X16 |