get the socket/core info for each vmware host

get the socket/core info for each vmware host

Get-VMHost | %{Get-View $_.ID} | %{
  $name = $_.name
  $esx = "" | select NumCpuPackages, NumCpuCores, Hz, Memory
  $esx.NumCpuPackages = $_.Hardware.CpuInfo.NumCpuPackages 
  $esx.NumCpuCores = $_.Hardware.CpuInfo.NumCpuCores
  $esx | select-object @{Name = "Name"; Expression = {$name}}, @{Name = "Sockets"; Expression = {$esx.NumCpuPackages}}, @{Name = "Cores"; Expression = {$esx.NumCpuCores}}
  }

http://www.vmwarescripting.com

This document was generated from the following thread: 

Version history
Revision #:
1 of 1
Last update:
‎02-10-2009 06:30 AM
Updated by: