Get Device SDR
更新时间: 2026/08/06
在Gitcode上查看源码Get Device SDR
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 device SDR.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | S/E 04h |
| CMD | 21h |
| 1 | Reservation ID. LS Byte. Only required for partial reads with a non-zero 'Offset into record' field. Use 0000h for reservation ID otherwise. |
| 2 | Reservation ID. MS Byte. |
| 3 | Record ID of record to Get, LS Byte. 0000h returns the first record. |
| 4 | Record ID of record to Get, MS Byte. |
| 5 | Offset into record |
| 6 | Bytes to read. FFh means read entire record. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code. Generic, plus following command specific: 80h=record changed. This status is returned if any of the record contents have been altered since the last time the Requester issued the request with 00h for the 'Offset into SDR' field. |
| 2 | Record ID for next record, LS Byte |
| 3 | Record ID for next record, MS Byte |
| 4:3+N | Requested bytes from record |
Command Example
Obtain the device SDR.
Request:
bash
ipmicmd -k "0f 00 04 21 00 00 00 00 00 00" smi 0Response:
text
0f 02 00