VMware Cloud Community
kjoyce78
Contributor
Contributor
Jump to solution

Calcuating total cluster CPU Mhz

So I have been working with the Get-VMhost command and I am able to get the data I want but I am trying to figure out how to get the total.. If the cluster has 10 hosts I want to know the total mhz for all  10 hosts combined not just 10 individual host mhz. I am new pretty new to PowerShell so maybe this is simple.

Get-VMhost -Location test | Select CputTotalMhz

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

That's where the Measure-Object cmdlet comes in handy.

Get-VMhost -Location test | Measure-Object -Property CPUTotalMhz -Sum | select -Property Sum


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

That's where the Measure-Object cmdlet comes in handy.

Get-VMhost -Location test | Measure-Object -Property CPUTotalMhz -Sum | select -Property Sum


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos