ProLiant Servers (ML,DL,SL)
1825768 Members
2070 Online
109687 Solutions
New Discussion

HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

 
amirgilan
Advisor

HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

Hi dear friends.
I think HPE Gen9 Server CPU Utilization Will Display Incorrectly in API request.

I use This API for checking CPU utilization on ILO4:

ILO4:
https://ilo_ip/redfish/v1/Chassis/1/Power/PowerMeter/   


        {
            "AmbTemp": 16,
            "Average": 282,
            "Cap": 0,
            "CpuAvgFreq": 1789,
            "CpuCapLim": 100,
            "CpuMax": 306,
            "CpuPwrSavLim": 73,
            "CpuUtil": 692,
            "Minimum": 259,
            "Peak": 348,
            "PrMode": "dyn",
            "PunCap": false,
            "Time": "2022-04-26T12:00:22Z",
            "UnachCap": false
        },

as you can see, I see a  "CpuUtil": 692, more than 100 percent!! How this generated, and why is this more than 100 percent? I check this for more than 30 gen9 servers. In gen10 servers I used the API below and it works correctly, 
ILO5:
https://ilo_ip /redfish/v1/systems/1/
Also, I see the difference CPU utilization consume in OneView and ILO 4 API
How this number generated in API? Should I change or calculated number with CPU core?

https://hewlettpackard.github.io/ilo-rest-api-docs/ilo4/#powerdetail-array-item-cpuutil
PowerDetail[array-item].CpuUtil

5 REPLIES 5
support_s
System Recommended

Query: HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

System recommended content:

1. Advisory: (Revision) HPE OneView - HPE Gen10 Server CPU Utilization and CPU Frequency Speed Will Display Incorrectly in OneView

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

Suman_1978
HPE Pro

Re: HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

Hi,

If I am not wrong, this is the CPU Power Utilization metric.  Not the CPU Utilization/Performance as in Windows OS.

HP RESTful API Data Model Reference for iLO 4.  Page@128-130

Thank You!
I work with HPE but opinions expressed here are mine.
Recent Support Video Releases



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
amirgilan
Advisor

Re: HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

Thank you Suman, 
I used this metric for ILO5 too and it's work correctly and HPE Oneview use these metric too.
As you can see in link bellow HPE use this api for cpu utlization:
https://support.hpe.com/hpesc/public/docDisplay?docId=a00046004en_us
But if  it is a different value, could you help me to distinguish how HPE oneview shows CPU utilization for ILO4?
which API they use? 

Thanks

AmRa
HPE Pro

Re: HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

Hi

Use below API RestAPI calls to retrieves historical utilization data for the specified resource, metrics, and time span.

Get most recent 24-hour CPU Utilization & Frequency data for server USE7335NW3 (endDate should be present time):

Request
GET https://{appl}/rest/server-hardware/USE7335NW3/utilization?fields=CpuUtilization&fields=CpuAverageFreq&filter=endDate=20120403T113000.000Z

Auth: abcdefghijklmnopqrstuvwxyz012345
X-Api-Version: 2000

Get 24-hour data for server USE7335NW3 between two specified dates at one sample per hour resolution:

Request
GET https://{appl}/rest/server-hardware/USE7335NW3/utilization?fields=CpuUtilization&view=hour&filter=startDate=20120401T202800.000Z&filter=endDate=20120402T202800.000Z

Auth: abcdefghijklmnopqrstuvwxyz012345
X-Api-Version: 2000

I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo
amirgilan
Advisor

Re: HPE Gen9 Server CPU Utilization Will Display Incorrectly in API

Thanks AmRa, But I would like to use ILO4 API for cpu utilization, I would like to know how HPE Oneview use ILO API for getting cpu utlization.