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

02h-标准DCMI命令获取系统功耗命令(Get-Power-Reading)

修订记录

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

基本信息

功能说明

查询系统功耗信息。

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
NetFnPICMG 2Ch
CMD02h
1DCh
2Mode
01 h:默认功率统计模式。暂不支持其他功率统计模式。
3Mode based attributes,00h
4Reserved,0x00

响应信息

字节顺序域取值说明
1Completion Code(完成码)
2DCh
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:                   activated

IPMI原始命令查询系统功率

请求:

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

返回到索引