Get Power Reading
更新时间: 2025/06/26
在Gitcode上查看源码02h-标准DCMI命令获取系统功耗命令(Get-Power-Reading)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
查询系统功耗信息。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | PICMG 2Ch |
| CMD | 02h |
| 1 | DCh |
| 2 | Mode 01 h:默认功率统计模式。暂不支持其他功率统计模式。 |
| 3 | Mode based attributes,00h |
| 4 | Reserved,0x00 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code(完成码) |
| 2 | DCh |
| 3:4 | 当前系统功率(瓦特),低字节优先 |
| 5:6 | 采样期间最小功率(瓦特),低字节优先 |
| 7:8 | 采样期间的最大功率(瓦特),低字节优先 |
| 9:10 | 采样期间的平均功率(瓦特),低字节优先 |
| 11:14 | 当前时间戳,低字节优先 |
| 15:18 | 控制器收集统计信息的时间长度(毫秒),低字节优先 |
| 19 | 系统功率可查状态 [7]:reserved [6]:0b-没有可用功率测量值 1b-有可用功率测量值 [5]:[0]:reserved |
命令样例
DCMI标准命令查询系统功率
请求:
ipmitool dcmi power reading响应:
Instantaneous power reading: 173 Watts
Minimum during sampling period: 0 Watts
Maximum during sampling period: 1023 Watts
Average power reading over sample period: 138 Watts
IPMI timestamp: Thu Aug 1 13:46:34 2024
Sampling period: 00010824 Seconds.
Power reading state is: activatedIPMI原始命令查询系统功率
请求:
ipmitool raw 0x2c 0x02 0xdc 0x01 0x00 0x00响应:
dc aa 00 00 00 ff 03 8a 00 96 43 ac 66 a9 dd a5 00 40