Get Device SDR Info
更新时间: 2026/08/06
在Gitcode上查看源码

Get Device SDR Info

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This API is used to obtain the SDR information of a device.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFnS/E 04h
CMD20h
(1)Operation (optional)
[7:1]-reserved
[0]-1b=Get SDR count. This returns the total number of SDRs in the device.
0b=Get Sensor count. This returns the number of sensors implemented on LUN this command was addressed to.

Response Information

ByteData Field
1Completion Code
2For Operation="Get Sensor Count" (or if byte 1 not present in request):
Number of sensors in device for LUN this command was addressed to.
For Operation="Get SDR Count":
Total Number of SDRs in the device.
3Flags:
Dynamic population
[7]-0b=static sensor population. The number of sensors handled by this device is fixed, and a query shall return records for all sensors.
1b=dynamic sensor population. This device may have its sensor population vary during 'run time' (defined as any time other that when an install operation is in progress).
Reserved
[6:4]-reserved
Device LUNs
[3]-1b=LUN 3 has sensors
[2]-1b=LUN 2 has sensors
[1]-1b=LUN 1 has sensors
[0]-1b=LUN 0 has sensors
4:7Sensor Population Change Indicator. LS byte first.
Four byte timestamp, or counter. Updated or incremented each time the sensor population changes. This field is not provided if the flags indicate a static sensor population.

Command Example

Obtain the SDR information of a device.

Request:

bash
ipmicmd -k "0f 00 04 20" smi 0

Response:

text
0f 77 01

Back to Index