Server Management - Remote Server Management
1754380 Members
2965 Online
108813 Solutions
New Discussion юеВ

Interval of measurement of power on the iLO 4

 
lightSeeker
Advisor

Interval of measurement of power on the iLO 4

Hello,

I've used the Python "requests" library to interact with the iLO 4 (V2.76) and have successfully read PowerConsumedWatts. The full JSON response is shown at the end of this message.

The measurement window seems to be awfully long - 20 minutes by default, and no less than 1 minute, since "PowerControl[{item}].PowerMetrics.IntervalInMin " is an integer.

Can this be shortened to 1 second?

 

###JSON response

{'@odata.context': '/redfish/v1/$metadata#Chassis/Members/1/Power$entity', '@odata.id': '/redfish/v1/Chassis/1/Power/', '@odata.type': '#Power.1.0.1.Power', 'Id': 'Power', 'Name': 'PowerMetrics', 'Oem': {'Hp': {'@odata.type': '#HpPowerMetricsExt.1.2.0.HpPowerMetricsExt', 'SNMPPowerThresholdAlert': {'DurationInMin': 0, 'ThresholdWatts': 0, 'Trigger': 'Disabled'}, 'Type': 'HpPowerMetricsExt.1.2.0', 'links': {'FastPowerMeter': {'href': '/redfish/v1/Chassis/1/Power/FastPowerMeter/'}, 'FederatedGroupCapping': {'href': '/redfish/v1/Chassis/1/Power/FederatedGroupCapping/'}, 'PowerMeter': {'href': '/redfish/v1/Chassis/1/Power/PowerMeter/'}}}}, 'PowerAllocatedWatts': 135, 'PowerAvailableWatts': 365, 'PowerCapacityWatts': 500, 'PowerConsumedWatts': 53, 'PowerControl': [{'PowerAllocatedWatts': 135, 'PowerAvailableWatts': 365, 'PowerCapacityWatts': 500, 'PowerConsumedWatts': 53, 'PowerLimit': {'LimitInWatts': None}, 'PowerMetrics': {'AverageConsumedWatts': 52, 'IntervalInMin': 20, 'MaxConsumedWatts': 56, 'MinConsumedWatts': 52}, 'PowerRequestedWatts': 135}], 'PowerLimit': {'LimitInWatts': None}, 'PowerMetrics': {'AverageConsumedWatts': 52, 'IntervalInMin': 20, 'MaxConsumedWatts': 56, 'MinConsumedWatts': 52}, 'PowerRequestedWatts': 135, 'Type': 'PowerMetrics.0.11.0', 'links': {'self': {'href': '/redfish/v1/Chassis/1/Power/'}}}

4 REPLIES 4
TVVJ
HPE Pro

Re: Interval of measurement of power on the iLO 4

Hello,

Please review the "RESTful Interface Tool 1.50 User Guide" and see if it helps.

Regards,

I work for HPE
Views expressed herein are my personal opinion and are not the views of HPE

Accept or Kudo

lightSeeker
Advisor

Re: Interval of measurement of power on the iLO 4

@TVVJ Thank you, but no, it doesn't.

The HP RESTful API Data Model Reference for iLO 4 would be a more likely candidate, but it doesn't help.

lightSeeker
Advisor

Re: Interval of measurement of power on the iLO 4

There is a resource at /redfish/v1/Chassis/1/Power/FastPowerMeter, of type HPPowerMeter.1.0.0.HPPowerMeter.

It shows 120 samples, which, if they are taken over the 20 minute interval, would equate to a 10-second interval between samples.

Indeed, the time stamp shows roughly 10 seconds between samples.

That's much better, but this resource is undocumented in the Data Model Reference.

Moreover, the sampling rates offered all seem to be fixed.

lightSeeker
Advisor

Re: Interval of measurement of power on the iLO 4

Correction to previous message: type should have been HPPowerMeter.1.0.0.

Furthermore: the member that contains the data is "PowerDetail".

It contains 120 samples, formatted as follows:

{'AmbTemp': 20, 'Average': 51, 'Cap': 0, 'CpuAvgFreq': 0, 'CpuCapLim': 100, 'CpuMax': 0, 'CpuPwrSavLim': 100, 'CpuUtil': 0, 'Minimum': 51, 'Peak': 55, 'PrMode': 'dyn', 'PunCap': False, 'Time': '2024-02-29T21:05:49Z', 'UnachCap': False}

In the 10 seconds preceding 21:05:49, the average power was 51W.