Get Sensor Value
更新时间: 2025/06/26
在Gitcode上查看源码31h-查询传感器数值(Get-Sensor-Value)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
查询传感器数值。
权限
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 3Eh |
| CMD | 31h |
| 1 | Sensor 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) |
| 2 | Category offset, 1 based (1, 2, 3………) |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 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]; /传感器值的整数部分,低字节在前 / guint8 decimal_value; / 传感器值的小数部分/ |
| 5 | Sensor number |
命令样例
查询CPU1温度传感器数值
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN