VMware Cloud Community
heat23
Contributor
Contributor

Get-Stat not reporting stats on only 1 of my ESXi 5.5 servers

I have 14 ESXI 5.5 servers running 2718055 and on only 1 of them, running Get-Stat reports NO output. Can't figure out why this is happening as all servers *should* have the same configuration.

Here is the .ps1 script I am running:

$vis = Connect-VIServer -Server <hostname> -username root -password <password>

Get-Stat -Server $vis -Start (Get-Date).AddHours(-4) -Finish (Get-Date) -stat cpu.usage.average -MaxSamples 1

Output is completely blank.

If I change my hostname to any of the other 13 servers, I get the complete stat ouput...

..snippet..

cpu.usage.average   8/4/2015 4:11:00 PM             8.93 %    6
cpu.usage.average   8/4/2015 4:11:00 PM             4.46 %    5
cpu.usage.average   8/4/2015 4:11:00 PM             5.92 %    8
cpu.usage.average   8/4/2015 4:11:00 PM             5.09 %    7
cpu.usage.average   8/4/2015 4:11:00 PM             9.98 %    0
cpu.usage.average   8/4/2015 4:11:00 PM             3.53 %    30
cpu.usage.average   8/4/2015 4:11:00 PM             2.17 %    34
cpu.usage.average   8/4/2015 4:11:00 PM             5.96 %    33
cpu.usage.average   8/4/2015 4:11:00 PM            13.34 %    32
cpu.usage.average   8/4/2015 4:11:00 PM             3.46 %    31

I have tried rebooting the problematic ESXi server to no avail.

Please help!

Tags (3)
0 Kudos
8 Replies
LucD
Leadership
Leadership

I assume those ESXi are running in a cluster ?

If yes, can you try to reconfigure the problematic ESXi node for HA.

You could use

$esx = Get-VMHost -Name ProblematicEsx

$esx.ExtensionData.ReconfigureHostForDAS()


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

0 Kudos
heat23
Contributor
Contributor

Thanks for the response. Actually these are standalone ESXi servers since we are running just the Essentials license

0 Kudos
LucD
Leadership
Leadership

I see. Is the Performance data also missing in the vSphere or Web client for that specific ESXi ?


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

0 Kudos
heat23
Contributor
Contributor

It works fine via vSphere Client

0 Kudos
LucD
Leadership
Leadership

I assume you already tried a Disconnect-VIServer and Connect-VIserver ?

Did you already try stopping the PowerShell session, and restarting it ?


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

0 Kudos
heat23
Contributor
Contributor

Yes, I have tried it from 2 different Windows 2008 servers with powershell

0 Kudos
heat23
Contributor
Contributor

Is there any service or configuration setting that someone else may have changed on the ESXi host itself (via vSphere or SSH) that could have caused this to happen?

0 Kudos
LucD
Leadership
Leadership

If you see the performance data in the vSphere client, the data is collected.

It just seems that the Get-Stat cmdlet doesn't retrieve the statistical data from that specific ESXi server.

No real explanation for this behaviour I'm afraid, and I haven't seen something like that before.

You could try to connect my Stats Toolbox to the ESXi server, and check if you get the counters back.

Otherwise I would suggest you open a SR for this.


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

0 Kudos