Get Sensor Value
更新时间: 2026/08/06
在Gitcode上查看源码

Get Sensor Value

Change History

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

Basic Information

Function Description

This command is used to query the sensor data.

Privilege

Command Information

Request Information

ByteData Field
NetFn3Eh
CMD31h
1Sensor 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)
2Category offset, 1 based (1, 2, 3.........)

Response Information

ByteData Field
1Completion Code
80h=sensor Category is invalid in current firmware
81h=Category offset exceed limitation
2:4Sensor 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 */
5Sensor number

Command Example

Query the temperature sensor value of CPU1.

Request:

bash
ipmicmd -k "0f 00 MM NN" smi 0

Response:

text
0f MM NN

Back to Index