I have 5 servers in a cluster with 4 cores each at 2GHz per core. My aggregate cluster capacity is 40Ghz.
How could I get this data on aggregate CPU capacity for a cluster using PowerCLI?
Try something like this
Get-Cluster -Name MyCluster | Select Name,@{N="CPU Mhz";E={$_ | Get-VMHost | %{ $_.ExtensionData.Summary.Hardware.CpuMhz * $_.ExtensionData.Summary.Hardware.NumCpuCores} | Measure-Object -Sum | Select -ExpandProperty Sum}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference