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
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
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