Get Energy Information
更新时间: 2025/06/26
在Gitcode上查看源码E2h-查询能效信息(Get-Energy-Information)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
自定义命令, 使用场景举例:
1、用于向BMC BMC查询单板当前功率,比如ME/IMU查询整机功率信息。
2、用于获取进风口温度以及每个分区风扇转速。
权限
PowerMgnt
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | E2h |
| 1:N | Byte 1:N – Array of request, each of them consisting of the following bytes;Max count of request is 18. 具体定义: 参考信息 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1:N | If an array of request was sent an array of responses is returned. Each response corresponds to a request with the same index. Byte 1:N – Array of responses, each of them consisting of the following bytes. 具体定义: 参考信息 |
附表1 参数表
| 功能描述 | SubCmd | 请求 | 响应 |
|---|---|---|---|
| 模板:功能描述,使用场景 | 0xMN | 请求: Read Offset:0x0000 Length:1 响应: End of List:0 Data: 0:功能0 1:功能1 | 请求: Write Offset:0x0000 Length:1 Data: 0:功能0 1:功能1 |
| Platform Power Consumption on the DC side. | 0x00 | 1st byte: Sub command, 0x00 – Platform Power Consumption on the DC side. If the Power Source Efficiency is not supplied, NM treats this reading as a reading on the primary side (assuming Power Source Efficiency to be 100%). 2nd to 18th byte: Reserved. Write at least two bytes. Recommended to write as 00h. | 1st byte: Completion Code 2nd byte: Platform Power Consumption in [Watts]. Values below 0 are ignored and treated as a power reading failure. 3nd and 4th byte: Reading value. |
| Inlet Air Temperature. For Inlet Air Temperature | 0x10 | 1st byte: Sub command, 0x10 – Inlet Air Temperature. For Inlet Air Temperature 2nd to 18th byte: Reserved. Write at least two bytes. Recommended to write as 00h. | 1st byte: Completion Code 2nd byte: Inlet Air Temperature in degrees centigrade. Values below -128 degrees centigrade and above +127 degrees centigrade will be ignored and treated as a temperature reading failure. 3nd and 4th byte: Reading value. |
| Zone Fan Speed. | 0x30 | 1st byte: Sub command, 0x30 - Zone Fan Speed. 2nd to 18th byte: One to six groups can be queried. The format of the first group is {group id,reserverd}, and the format of the remaining groups is {Zone Fan Speed,group id,reserverd}. Zone Fan Speed is recommended to write as 30h. | 1st byte to 24th byte: Return based on the query quantity. The format of each group is {Completion Code, Zone Fan Speed, Reading Value, Reading Value}. |
命令样例
获取openUBMC单板当前功率
请求:
ipmicmd -k "0f 00 30 e2 00 00 00" smi 0响应:
0f 31 00 e2 00 00 68 00获取进风口温度
请求:
ipmicmd -k "0f 00 30 e2 10 00 00" smi 0响应:
0f 31 00 e2 00 10 1e 00获取分区风扇转速
请求:
ipmicmd -k "0f 00 30 e2 30 00 00 30 01 00" smi 0响应:
0f 31 00 e2 00 30 61 26 00 30 86 26