Get Sensors Info
更新时间: 2026/08/06
在Gitcode上查看源码Get Sensors Info
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Reads information about multiple sensors.
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 = 28h |
| 5 | trigger type 0: reading 1: event |
| 6:N | Sensors Number |
| Note: This command can be used to read the information about multiple sensors, including the reading of the threshold sensor and the event level of the discrete sensor. 6:N indicates the number of sensors to be read based on the variable-length input parameters. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 0xFF: The input sensor number is incorrect. [7]-0b=All Event Messages disabled from this sensor [6]-0b=sensor scanning disabled [5]-1b=reading/state unavailable [4:0]-reserved. Ignore on read |
| 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: (2N-6) | Each sensor has a two-byte return value: the completion code and the reading. 5: completion code for reading the first sensor 6: reading of the first sensor ...... 2N-7: completion code for reading the Nth sensor 2N-6: reading of sensor N The sensor reading returned by the discrete sensor is the highest level of the current sensor event. Event Severity 0h=No State Assert Event 1h=Non Critical 2h=Critical 3h=Non Recoverable Other=Reserved |
Command Example
Obtain the memory temperature.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN