代码仓
中
Get Device SDR
更新时间: 2026/08/06
在AtomGit上查看源码

Get Device SDR ​

Change History ​

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

Basic Information ​

Function Description ​

This API is used to obtain the device SDR.

Privilege ​

ReadOnly

Command Information ​

Request Information ​

ByteData Field
NetFnS/E 04h
CMD21h
1Reservation ID. LS Byte. Only required for partial reads with a non-zero
'Offset into record' field. Use 0000h for reservation ID otherwise.
2Reservation ID. MS Byte.
3Record ID of record to Get, LS Byte. 0000h returns the first record.
4Record ID of record to Get, MS Byte.
5Offset into record
6Bytes to read. FFh means read entire record.

Response Information ​

ByteData Field
1Completion 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.
2Record ID for next record, LS Byte
3Record ID for next record, MS Byte
4:3+NRequested bytes from record

Command Example ​

Obtain the device SDR. ​

Request:

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

Response:

text
0f 02 00

Back to Index ​