Power Usage via IPMI or BIOS or?

19,624

Solution 1

I've seen support via IPMI, but they are via extensions to IPMI and depend on whether there is support in the motherboard for it. Here's an example on the Dell Poweredge R610 using FreeIPMI:

> /usr/sbin/ipmi-oem dell get-power-consumption-data
Cumulative Energy Start Time : 09/10/09 - 16:07:49
Cumulative Energy            : 199.93
kWh Peak Amp Time            : 04/27/11 - 19:18:27
Peak Amp                     : 0.90 A
Peak Watt Time               : 04/27/11 - 23:10:10
Peak Watt                    : 197 W

and this is on an Intel motherboard (not sure of rev) using Intel Node Manager extensions.

> /usr/sbin/ipmi-oem intelnm get-node-manager-statistics
Current Power                                 : 490 Watts
Minimum Power                                 : 36 Watts
Maximum Power                                 : 681 Watts
Average Power                                 : 497 Watts
Power Statistics Reporting Period             : 1 seconds
Power Global Administrative State             : Enabled
Power Measurements State                      : In Progress

Current Inlet Temperature                     : 18 Celsius
Minimum Inlet Temperature                     : 16 Celsius
Maximum Inlet Temperature                     : 25 Celsius
Average Inlet Temperature                     : 20 Celsius
Inlet Temperature Statistics Reporting Period : 3 seconds
Inlet Temperature Global Administrative State : Disabled
Inlet Temperature Measurements State          : In Progress

The Intel Node Manager extensions are supported by a decent number of motherboards.

There is an additional standard out there called the Data Center Management Interface (DCMI) that some motherboards support. If your motherboard supports it, similar IPMI extensions can be used to measure system power (FreeIPMI's ipmi-dcmi or ipmitool's 'dcmi' command are two I'm aware of).

Update on your Supermicro comment:

I can't speak for your specific motherboard, but some Supermicro motherboards in this "generation" have DCMI support. Here's what I got on a X8DTG-D.

> /usr/sbin/ipmi-dcmi --get-system-power-statistics
Current Power                        : 246 Watts
Minimum Power over sampling duration : 246 watts
Maximum Power over sampling duration : 246 watts
Average Power over sampling duration : 246 watts
Time Stamp                           : 05/15/2012 - 18:31:24
Statistics reporting time period     : 69380 milliseconds
Power Measurement                    : Not Available

Solution 2

ipmitool sdr will pull the available sensor data on the system. You may see a wattage level, depending on the type of hardware you're using.

Solution 3

Intelligent Rack PDU's with individual outlet-level metering can show per server or per server power supply power consumption, per branch circuit within the rack PDU, and at the input feed. There more widely available now vs. just a few years ago. You can typically get current, voltage, and in some cases, billing grade energy (kWh) data.

Also, if you're just looking for something for planning purposes, here's a site that provides server power consumption vs. workload (or utilization) by vendor make and model. http://spec.org/power_ssj2008/results/

Solution 4

You can query the power consumption with ipmitool:

ipmitool -I lanplus -H ${BMC_HOST} -U ${BMC_USER} -P ${BMC_PASS} dcmi power reading

or on newer systems with redfish:

curl -s https://${BMC_HOST}/redfish/v1/Chassis/1/Power/ -k -u ${BMC_USER}:${BMC_PASS} | jq .PowerControl[].PowerMetrics

Solution 5

It depends on what sensor data the BMC makes available to you. I do know that recent version of HP's iLO cards do make current draw available.

Additionally, you can get PDUs that give data on a per-socket basis, instead of just per-bank or per-unit.

Share:
19,624
Jacob
Author by

Jacob

Updated on September 18, 2022

Comments

  • Jacob
    Jacob almost 2 years

    Is it possible to check the power usage of an entire machine via IPMI, BIOS, or any other option? I have done some searching but no results have came up yet.

    PDUs only show the total usage, so this would be an interesting way of seeing which machines are sucking up the power.


    Yes, I read about a couple of the options mentioned here but we are using a Supermicro system with a Supermicro X9SCL+-F motherboard, which does not mention anything but voltage in the sensor data:

    6: +5V (Voltage): 5.09 V (4.45/5.57): [OK]
    7: +12V (Voltage): 12.03 V (10.65/13.30): [OK] 8: -12V (Voltage): -12.38 V (-12.77/-11.02): [OK]
    9: +3.3V (Voltage): 3.22 V (2.90/3.67): [OK]
    10: +3.3VSB (Voltage): 3.22 V (2.90/3.67): [OK]
    11: VBAT (Voltage): 3.26 V (2.90/3.67): [OK]

    Any ideas for this type of system, or is it simply not possible?

    Thank you! :)

    • ewwhite
      ewwhite about 12 years
      What type of server is this? HP ILO and Dell DRAC offer this.
    • Jacob
      Jacob about 12 years
      Yes, I read about a couple of the options mentioned here but we are using a Supermicro system with a Supermicro X9SCL+-F motherboard, which does not mention anything but voltage in the sensor data: 6: +5V (Voltage): 5.09 V (4.45/5.57): [OK]<br> 7: +12V (Voltage): 12.03 V (10.65/13.30): [OK] 8: -12V (Voltage): -12.38 V (-12.77/-11.02): [OK]<br> 9: +3.3V (Voltage): 3.22 V (2.90/3.67): [OK]<br> 10: +3.3VSB (Voltage): 3.22 V (2.90/3.67): [OK]<br> 11: VBAT (Voltage): 3.26 V (2.90/3.67): [OK]<br> Any ideas for this type of system, or is it simply not possible? Thank you! :)
    • Albert Chu
      Albert Chu about 12 years
      I've updated my answer below regarding using DCMI. There is a decent chance it's on your motherboard.