Get Power Reading
更新时间: 2026/08/06
在Gitcode上查看源码Get Power Reading
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to query the system power consumption.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | PICMG 2Ch |
| CMD | 02h |
| 1 | DCh |
| 2 | Mode 01 h: default power statistics mode. Other power statistics modes are not supported currently. |
| 3 | Mode based attributes, 00h |
| 4 | Reserved, 0x00 |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | DCh |
| 3:4 | Current system power (W). The least significant byte is preferred. |
| 5:6 | Minimum power (watts) during sampling, low byte first |
| 7:8 | Maximum power (watts) during sampling, low byte first |
| 9:10 | Average power (watts) during sampling. The least significant byte is preferred. |
| 11:14 | Current timestamp. The least significant byte takes precedence. |
| 15:18 | Duration for the controller to collect statistics, in milliseconds. The least significant byte takes precedence. |
| 19 | System 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 readingResponse:
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