Get Device SDR Info
更新时间: 2026/08/06
在Gitcode上查看源码Get Device SDR Info
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial 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
| Byte | Data Field |
|---|---|
| NetFn | S/E 04h |
| CMD | 20h |
| (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
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | For 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. |
| 3 | Flags: 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:7 | Sensor 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 0Response:
text
0f 77 01