Read File From BMC
更新时间: 2026/08/06
在Gitcode上查看源码Read File From BMC
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
The BIOS reads batch configuration data (BT jumbo frames) from the BMC.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 92h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command, sub command=0Ah |
| 5 | BIOS ID: This parameter is reserved for multi-host scenarios. In single-host scenarios, this parameter has a fixed value of 0. |
| 6 | File Selector 00h-Display.ini 01h-Options.ini 2Ah-silkconfig.json 2Bh-new_secureboot.json 2Fh-Power supply information query, PsuInfo.json other-Reserved Note: For details about the File Selector allocation table, see the Table 1 file code. |
| 7 | Operations: 00h Read Prepare 01h Read Data 03h Read Finish |
| (8:11) | Offset to Read, LSB First Offset of the data segment relative to the start position of the file. NOTE: This field must be specified if the value of Operation is Read Data. |
| (12) | Read Length NOTE: This field must be specified if the value of Operation is Read Data. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 00h Command Completed Normally 80h Operation In Progress This error code is returned when the Prepare data is not ready. In this case, the initiator should initiate the Prepare operation again until the 00h completion code is returned. D5h Invalid Status |
| 2:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 5 | 7:1-Reserved 1 - No More Data Flag 00h Still have data 01h No More Data |
| (6:N) | When the value of Operation is Read Data, the last byte of File data is the accumulated sum of 5:N–1 of this segment of data. When the value of Operation is Read Finish, this parameter has only one byte. The accumulated sum of the current file is returned. The total length of IPMI commands cannot exceed 254 bytes. That is, n cannot be greater than 247 (excluding checksum verification). |
Command Example
Read batch configuration data.
Request:
bash
ipmicmd -k "0f 00 30 92 db 07 00 0a 00 01 03" smi 0Response:
text
0f 31 00 92 00 db 07 00 01 00