Restarting managements agents
PowerCLI • management agents • vpxa
Apr 15 2014You know the situation when the host stops reporting its performance counters, do you? CPU and RAM load are showing nils.. This snippet will fix the issue:
Get-View -ViewType HostSystem `
-Filter @{'Summary.QuickStats.Uptime'='^0$'} `
-Property Name,ConfigManager | % {
(Get-View $_.ConfigManager.ServiceSystem).RestartService('vpxa')
} 2>$null