VMware Cloud Community
marcochan
Contributor
Contributor
Jump to solution

how to get vm's Host cpu mhz by PowerCLI

how to get vm's Host cpu mhz by PowerCLI

thanks  Smiley Happy

TEST.JPG

Reply
0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

The following PowerCLI command will list the maximum host cpu in Mhz for all of your virtual machines:

Get-VM | Select-Object -Property Name,@{Name='MaxHostCpuMhz';Expression={$_.NumCpu * $_.VMHost.CpuTotalMhz / $_.VMHost.NumCpu}}

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

Reply
0 Kudos
1 Reply
RvdNieuwendijk
Leadership
Leadership
Jump to solution

The following PowerCLI command will list the maximum host cpu in Mhz for all of your virtual machines:

Get-VM | Select-Object -Property Name,@{Name='MaxHostCpuMhz';Expression={$_.NumCpu * $_.VMHost.CpuTotalMhz / $_.VMHost.NumCpu}}

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos