Hi All
I have PowerCLI script which provides me report of cluster performance report in VMware 5.1 however post upgrade to VMware 6.0, Out put of PowerCLI command is coming 0.
Reference command used in Script as below. I am using function here. so that I will call whenever I required.
Function CPUAVGUSAGE
{[System.Math]::Round((Get-Stat -Entity $Cluster -start (get-date).AddDays(-7) -Finish (Get-Date)-MaxSamples 10000 -stat cpu.usage.average `
| Measure-Object -Property value -Average -Maximum -Minimum).Average, 2)}
Get-Stat -Entity $Cluster -start (get-date).AddDays(-7) -Finish (Get-Date)-MaxSamples 10000 -stat cpu.usage.average | Measure-Object -Property value -Average -Maximum -Minimum).Average, 2
Above command output is coming 0
Did you already check KB2107219?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I have gone through the KB article, however it says that keeping stat 4 is not recommended. The same script i used for ESXi host where i get the results as expected but on the cluster level it is giving answer as 0.