Get Property Value Common Command
更新时间: 2026/08/06
在Gitcode上查看源码Get Property Value Common Command
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to query attribute values.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 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, subcommand = 36h |
| 5:6 | Specifies the function ID. For details, see Table 1. |
| 7 | Get Information Count M, which indicates the number of obtained information. |
| 8 | Required Data Length: indicates the required length of the data to be read. |
| 9:10 | Indicates the read offset. The value starts from 0 (LSB first). |
| 11:N | //datax:y, in which x specifies the start byte and y indicates the number of bytes. // Specify the object index. data1:2-Object Key ID, LSB first. Information number of the index attribute. If an object does not have an index attribute, this field is set to 0xffff, indicating the first object of the query type. If the highest bit of the index attribute information number is 1 (1xxxxxxx xxxxxxxxb) and is not 0xffff, all objects (that is, multiple objects) matching the index attribute value are queried. Otherwise, the first object (that is, a single object) with the index attribute is queried. When multiple objects are obtained, attribute frame splitting is not supported (as shown in the figure on the right). That is, if an attribute value is too long and needs to span multiple frames, the frame data after the first frame does not need to start with a header (that is, triplet).When a single object is obtained, the attribute frame can be split (as shown in the figure on the right). That is, each frame must be prefixed with a header (that is, triplet). The actual index attribute ID ranges from 1 to 0x7ffe. data3: 1-Reserved. The value is 0. data4:1-Object Key Length L. If Object Key ID is set to 0xffff, this field is set to 1. data5: L-Object Key Value. The specified information value is used as the object index value. For details, see Table 1. LSB first. If the object key ID is 0xffff, set this parameter to 0. // Specify the information number to be queried. data(5+L):2-information1 ID, LSB first data(5+L+2):2-information2 ID, LSB first ...... data(5+L+2M-2):2-informationM ID, LSB first |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 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 | End of List, indicating whether the current data is complete. Long data may need to be read multiple times. This field is used to check whether data is completely read. [7:1]: reserved [0]: End of list 0=last data 1=middle data |
| 6:N | //datax:y, in which x specifies the start byte and y indicates the number of bytes. //The following is the query result, including the information ID and information value. If the value of an attribute exceeds the maximum length (220 bytes), the value needs to be returned in frames. Each frame must contain the triplet information ID, Reserved, and information Length. data1:2-information1 ID, LSB first data3:1-information1 Type. For details, see Table 1. data4:1-information1 Length L. If no information is obtained, the length is returned as 0, and information1 Value is not returned. data5: L-information1 Value. Each frame of data must carry the information ID, reserved, and information length triplet, including the frame division. ...... dataX:2-informationM ID, LSB first data (X+2):1-informationM type. For details, see Table 1. data(X+3):1-informationM Length L. If no information is obtained, the length is returned as 0 and informationM Value is not returned. data(X+4):L-informationM Value NOTE: If the value of an attribute exceeds 220 bytes, the attribute needs to be returned in multiple frames. Each frame must contain the triplet information ID, Reserved, and information Length. |
Reference
Table 1 Data Type Parameters
| Data Type Code | Data Type | Function |
|---|---|---|
| 121 | UINT8 | 8-bit unsigned integer Value range: 0-255 |
| 110 | INT16 | Signed 16-bit integer Value range: -32768 to 32767 |
| 113 | UINT16 | Unsigned 16-bit integer Value range: 0-65535 |
| 105 | INT32 | Signed 32-bit integer Value range: -2147483648 to 2147483647 |
| 117 | UINT32 | Unsigned 32-bit integer Value range: 0-4294967295 |
| 115 | char[] | String |
Command Example
Query attribute values.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN