Get Power Level
更新时间: 2026/08/06
在Gitcode上查看源码Get Power Level
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Obtains the power level.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | PICMG 2Ch |
| CMD | 12h |
| 1 | PICMG Identifier. Indicates that this is a PICMG-defined group extension command. A value of 00h is used |
| 2 | FRU Device ID. Indicates an individual FRU device to query |
| 3 | Power Type 00h=Steady state power draw levels 01h=Desired steady state draw levels 02h=Early power draw levels 03h=Desired early levels All other values reserved |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | PICMG Identifier. Indicates that this is a PICMG-defined group extension command. A value of 00h is used. |
| 3 | Properties. This holds properties about the FRU. [7] Dynamic Power Configuration. Set to 1b if the FRU supports dynamic reconfiguration of power (i.e., the Payload service is uninterrupted when power levels are altered). [6:5] Reserved [4:0] Power Level. When requesting "Steady state power draw levels", this represents the power level of the FRU. When requesting desired power levels, this represents the power level the FRU would like to have. |
| 4 | Delay to Stable Power. This byte is written as 00h when Power Type is "Steady state power draw levels" or "Desired steady state draw levels". Otherwise, this byte contains the amount of time before power transitions from the early power levels to the normal levels. If a FRU does not require different "Early power draw levels", this byte is 00h when Power Type is "Early power draw levels" or "Desired early levels" and the remaining response data fields are ignored and could be set to 00h. This value is returned in tenths of a second. |
| 5 | Power Multiplier. This defines the number of tenths of a Watt by which to multiply all values held in bytes 6 and beyond. This is included to allow a FRU that spans multiple locations to specify higher power draws. For instance, if this byte holds a 50, then bytes 6 and beyond specify 5 W increments. |
| 6 | Power Draw[1]. The first entry reflects the lowest level of power (minimum power level) used by the FRU's Payload. |
| (...) | - |
| (N) | Power Draw[Max]. The last entry reflects the highest level of power used by the FRU's Payload. Everything is powered full capacity. Any bytes past the 6th byte are optional. The maximum value of N is 25 (which corresponds to a Max value of 20) due to IPMI message size restrictions. |
Command Example
Obtain the power level.
Request:
bash
ipmicmd -k "0f 00 2c 12 00 00 01" smi 0Response:
text
0f 2d 00 12 00 00 01 1e 1e b8 b8