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

12h-获取功率等级(Get-Power-Level)

修订记录

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

基本信息

功能说明

获取功率等级。

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
NetFnPICMG 2Ch
CMD12h
1PICMG Identifier. Indicates that this is a PICMG-defined group extension command. A value of 00h is used
2FRU Device ID. Indicates an individual FRU device to query
3Power 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

响应信息

字节顺序域取值说明
1Completion Code
2PICMG Identifier. Indicates that this is a PICMG-defined group extension command. A value of 00h is used.
3Properties. 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.
4Delay 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.
5Power 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.
6Power 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.

命令样例

获取功率等级

请求:

ipmicmd -k "0f 00 2c 12 00 00 01" smi 0

响应:

0f 2d 00 12 00 00 01 1e 1e b8 b8

返回到索引