Get Power Level
更新时间: 2025/06/26
在Gitcode上查看源码12h-获取功率等级(Get-Power-Level)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
获取功率等级。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| 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 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 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. |
命令样例
获取功率等级
请求:
ipmicmd -k "0f 00 2c 12 00 00 01" smi 0响应:
0f 2d 00 12 00 00 01 1e 1e b8 b8