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

31h-查询传感器数值(Get-Sensor-Value)

修订记录

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息

功能说明

查询传感器数值。

权限

命令信息

请求信息

字节顺序域取值说明
NetFn3Eh
CMD31h
1Sensor category(划横线的不支持)
0x01 – CPU temperature (degree)
0x02 – CPU margin temperature (degree)要求为正数
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………)

响应信息

字节顺序域取值说明
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]; /传感器值的整数部分,低字节在前 /
guint8 decimal_value; /
传感器值的小数部分
/
5Sensor number

命令样例

查询CPU1温度传感器数值

请求:

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

响应:

0f MM NN

返回到索引