Get Energy Information
更新时间: 2026/08/06
在Gitcode上查看源码Get Energy Information
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
The following is an example of a customized command:
Run the iBMCBMC command to query the current power of a board, for example, the power of the entire system.
Obtains the temperature of the air intake vent and the fan speed in each area.
Privilege
PowerMgnt
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | E2h |
| 1:N | Byte 1:N – Array of request, each of them consisting of the following bytes;Max count of request is 18. Definition: Reference Information |
Response Information
| Byte | Data Field |
|---|---|
| 1:N | If an array of request was sent an array of responses is returned. Each response corresponds to a request with the same index. Byte 1:N – Array of responses, each of them consisting of the following bytes. Definition: Reference Information |
Reference Information
Table 1 Parameter table.
| Overview | SubCmd | Request | Response |
|---|---|---|---|
| Template: function description and application scenario | 0xMN | Request: Read Offset: 0x0000 Length: 1 Response: End of List: 0 Data: 0: function 0 1: function 1 | Request: Write Offset: 0x0000 Length: 1 Data: 0: function 0 1: function 1 |
| Platform Power Consumption on the DC side. | 0x00 | 1st byte: Sub command, 0x00 – Platform Power Consumption on the DC side. If the Power Source Efficiency is not supplied, NM treats this reading as a reading on the primary side (assuming Power Source Efficiency to be 100%). 2nd to 18th byte: Reserved. Write at least two bytes. Recommended to write as 00h. | 1st byte: Completion Code 2nd byte: Platform Power Consumption in [Watts]. Values below 0 are ignored and treated as a power reading failure. 3nd and 4th byte: Reading value. |
| Inlet Air Temperature. For Inlet Air Temperature | 0x10 | 1st byte: Sub command, 0x10 – Inlet Air Temperature. For Inlet Air Temperature 2nd to 18th byte: Reserved. Write at least two bytes. Recommended to write as 00h. | 1st byte: Completion Code 2nd byte: Inlet Air Temperature in degrees centigrade. Values below -128 degrees centigrade and above +127 degrees centigrade will be ignored and treated as a temperature reading failure. 3nd and 4th byte: Reading value. |
| Zone Fan Speed. | 0x30 | 1st byte: Sub command, 0x30 - Zone Fan Speed. 2nd to 18th byte: One to six groups can be queried. The format of the first group is {group id,reserverd}, and the format of the remaining groups is {Zone Fan Speed,group id,reserverd}. Zone Fan Speed is recommended to write as 30h. | 1st byte to 24th byte: Return based on the query quantity. The format of each group is {Completion Code, Zone Fan Speed, Reading Value, Reading Value}. |
Command Example
Obtain the current power of the iBMCBMC board.
Request:
bash
ipmicmd -k "0f 00 30 e2 00 00 00" smi 0Response:
text
0f 31 00 e2 00 00 68 00