Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Help With Get-Stat for Clusters

$
0
0

I am trying to pull monthly averages for my clusters and I ran into a snag with my first bit of code.  Looks like my script is hanging at

 

$cpumax=Get-Stat -Entity $cluster -Start $start -MaxSamples 1 -Stat cpu.usage.average

 

Any help would be much appreciated

 

$start = (Get-Date).AddMonths(-1)
Get-Cluster |Select -Last 2 |Foreach-object {
$cluster=$_
$cpumax=Get-Stat -Entity $cluster -Start $start -MaxSamples 1 -Stat cpu.usage.average
$cluster.Name
$cpumax
}

Viewing all articles
Browse latest Browse all 179681

Trending Articles