Get Sensor Value
更新时间: 2026/08/06
在Gitcode上查看源码Get Sensor Value
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 the sensor data.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 3Eh |
| CMD | 31h |
| 1 | Sensor category (not supported for horizontal lines) 0x01 – CPU temperature (degree) The value of 0x02 – CPU margin temperature (degree) must be a positive number. 0x03 – inlet temperature (degree) 0x04 – outlet temperature (degree) optional 0x10-memory temperature (degree) 0x33 – system power consumption (Watt) 0X34 – node input 12V voltage(V) 0x35 – PSU input power (Watt) 0x36 – FAN speed (RPM) 0x37 – HDD total power consumption (Watt) optional 0x38 – FAN total power consumption (Watt) optional 0x39 – node power consumption (Watt) only valid for 2U4 node. 0x40 – RTC Battery voltage (V) |
| 2 | Category offset, 1 based (1, 2, 3.........) |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 80h=sensor Category is invalid in current firmware 81h=Category offset exceed limitation |
| 2:4 | Sensor actual reading, Ali 3 byte reading format guint8 integer_value[2]; /* Integral part of the sensor value. The least significant byte is in the front. / guint8 decimal_value; / Decimal part of the sensor value */ |
| 5 | Sensor number |
Command Example
Query the temperature sensor value of CPU1.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN