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

Get Power Reading

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This command is used to query the system power consumption.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFnPICMG 2Ch
CMD02h
1DCh
2Mode
01 h: default power statistics mode. Other power statistics modes are not supported currently.
3Mode based attributes, 00h
4Reserved, 0x00

Response Information

ByteData Field
1Completion Code
2DCh
3:4Current system power (W). The least significant byte is preferred.
5:6Minimum power (watts) during sampling, low byte first
7:8Maximum power (watts) during sampling, low byte first
9:10Average power (watts) during sampling. The least significant byte is preferred.
11:14Current timestamp. The least significant byte takes precedence.
15:18Duration for the controller to collect statistics, in milliseconds. The least significant byte takes precedence.
19System Power Query Status
[7]: reserved
[6]: 0b-No power measurement value is available.
1b: available power measurement value
[5]:[0]: reserved

Command Example

Query the system power using a standard DCMI command.

Request:

bash
ipmitool dcmi power reading

Response:

text
    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

Back to Index