VMware Cloud Community
E4F
Contributor
Contributor

cpu.usage.average Not Working

I am not able to get CPU stats from my ESX hosts using the following command.  Has anyone seen this before.

get-vmhost -name Server101| Get-Stat -Stat cpu.usage.average -Start (Get-Date).AddHours(-168) -IntevalMins 720 -MaxSamples (14)

Here is my output

MetricId                Timestamp                          Value Unit     Instance
--------                ---------                          ----- ----     --------
cpu.usage.average       10/26/2011 8:00:00 AM                  0 %
cpu.usage.average       10/26/2011 6:00:00 AM                  0 %
cpu.usage.average       10/26/2011 4:00:00 AM                  0 %
cpu.usage.average       10/26/2011 2:00:00 AM                  0 %
cpu.usage.average       10/26/2011 12:00:00 AM                 0 %
cpu.usage.average       10/25/2011 10:00:00 PM                 0 %
cpu.usage.average       10/25/2011 8:00:00 PM                  0 %
cpu.usage.average       10/25/2011 6:00:00 PM                  0 %
cpu.usage.average       10/25/2011 4:00:00 PM                  0 %
cpu.usage.average       10/25/2011 2:00:00 PM                  0 %
cpu.usage.average       10/25/2011 12:00:00 PM                 0 %
cpu.usage.average       10/25/2011 10:00:00 AM                 0 %
cpu.usage.average       10/25/2011 8:00:00 AM                  0 %
cpu.usage.average       10/25/2011 6:00:00 AM                  0 %

0 Kudos
4 Replies
LucD
Leadership
Leadership

Do you see values for this metric during that time range and for that server in the vSphere client ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

E4F
Contributor
Contributor

Yes I do

0 Kudos
LucD
Leadership
Leadership

Do you see any values when you run it this way ?

Or does that return zeroes as well ?

get-vmhost -name Server101 | 
Get-Stat -Stat cpu.usage.average -Start (Get-Date).AddHours(-168)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

E4F
Contributor
Contributor

That did it

0 Kudos