VMware Cloud Community
SinghSingh
Hot Shot
Hot Shot

Get Physiclal CPU info (Sockets & Cores)

HI

I would like to know if it is posible for me to use get-VMhost to pull the physical cpu information (sockets & cores) from an ESX Host? Or any other way for that matter.

Thanks

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Yes it can be done by using the Get-View cmdlet to get at the SDK objects.

This script shows you some CPU related values.

You can have a look at the HostHardwareInfo object to see the other properties.

$esx = Get-View (Get-VMHost -Name <ESX-hostname>).ID

Write-Host "# of CPUs" $esx.Hardware.CpuInfo.NumCpuPackages 
Write-Host "# cores per CPU" $esx.Hardware.CpuInfo.NumCpuCores
Write-Host "Hz" $esx.Hardware.CpuInfo.Hz


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

Reply
0 Kudos