Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 170134

Re: CPU Stats

$
0
0

A where-clause should do the trick

 

$clu=get-clusterClustername
$esx=$cluster|Get-VMHost|Where {$_.ConnectionState-eq"Connected"}
$statcpu=Get-Stat-Entity ($esx) -start (get-date).AddDays(-7) -Finish (Get-Date) -MaxSamples10000-statcpu.usage.average
$cpu=$statcpu|where {$_.Value-ne0} |Measure-Object-Propertyvalue-Average-Maximum

Viewing all articles
Browse latest Browse all 170134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>