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!
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
Thanks for the response. Actually these are standalone ESXi servers since we are running just the Essentials license
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
It works fine via vSphere Client
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
Yes, I have tried it from 2 different Windows 2008 servers with powershell
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?
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