Get Device ID
更新时间: 2025/06/26
在Gitcode上查看源码

01h-获取设备ID(Get-Device-ID)

修订记录

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

基本信息

功能说明

获取设备ID。

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
NetFnApp 06h
CMD01h
-

响应信息

字节顺序域取值说明
1Completion Code
2Device ID, 00h=unspecified.
3Device Revision
[7] 1=device provides Device SDRs
0=device does not provide Device SDRs
[6:4] reserved, Return as 0.
[3:0] Device Revision, binary encoded.
4Firmware Revision 1
[7] Device available: 0=normal operation, 1= device firmware, SDR Repository update or self -initialization in progress. [Firmware/SDR Repository updates can be differentiated by issuing a Get SDR command and checking the completion code.]
[6:0] Major Firmware Revision, binary encoded.
备注:不能通过Get Device ID的字段4来区分BMC V2或openUBMC,因为两段式版本号场景,BMC版本号最高字段有大于5。区分方式:通过ipmi命令30 90 08 00 01 00 ff查询BMC 固件本后,若版本号为四段式,且第一段版本号大于等于5,则为openUBMC版本;其余情况为BMC V2版本。
5Firmware Revision 2: Minor Firmware Revision. BCD encoded.
6IPMI Version. Holds IPMI Command Specification Version. BCD encoded.
00h=reserved.
Bits 7:4 hold the Least Significant digit of the revision, while bits 3:0 hold the Most Significant bits.
02h for implementations that provide IPMI v2.0 capabilities.
7Additional Device Support (formerly called IPM Device Support). Lists the IPMI 'logical device' commands and functions that the controller supports that are in addition to the mandatory IPM and Application commands.
[7] Chassis Device (device functions as chassis device per ICMB spec.)
[6] Bridge (device responds to Bridge NetFn commands)
[5] IPMB Event Generator (device generates event messages [platform event request messages] onto the IPMB.)
[4] IPMB Event Receiver (device accepts event messages [platform event request messages] from the IPMB.)
[3] FRU Inventory Device
[2] SEL Device
[1] SDR Repository Device
[0] Sensor Device
系统接口上,BMC返回2Fh;其他接口上,BMC返回2Dh。
系统接口上,BMC返回8Fh;其他接口上,BMC返回8Dh。
8:10Manufacturer ID, LS Byte first.
The manufacturer ID is a 20-bit value that is derived from the IANA 'Private Enterprise' ID (see below). Most significant four bits=reserved (0000b). 000000h=unspecified. 0FFFFFh=reserved. This value is binary encoded. E.g. the ID for the IPMI forum is 7154 decimal, which is 1BF2h, which would be stored in this record as F2h, 1Bh, 00h for bytes 8 through 10, respectively.
11:12Product ID, LS Byte first. This field can be used to provide a number that identifies a particular system, module, add-in card, or board set. The number is specified according to the manufacturer given by Manufacturer ID (see below).
0000h=unspecified. FFFFh=reserved. 说明:
BMC实现时,此处ProductID必须与HPM升级包中的ProductID保持一致。
(13:16)Auxiliary Firmware Revision Information. This field is optional.
Byte13: 14-Board ID, LS Byte first. OEM by Huawei.
Byte15-Version, BMC Platform Verify. OEM by Huawei.
For BMC V2(Hi1710):
[7:4]-Version.V
0-V100
1-V200
[3:0]-Version.R
0-R001
1-R002
For BMC V3(Hi1711):
Release Major Firmware Revision. BCD encoded.
Byte16-Reserved
For BMC V2(Hi1710):
ECO-FT support status.
For BMC V3(Hi1711):
Release Minor Firmware Revision. BCD encoded.

命令样例

获取设备ID

请求:

ipmicmd -k "0f 00 06 01" smi 0

响应:

0f 07 00 01 00 01 81 03 01 02 af db 07 00 0d 00 90 00 17 43

返回到索引