VMware Cloud Community
hammer2
Contributor
Contributor

Any way to get the total physical CPU socket count on ESX servers?

using reports is there a way to show total physical cpu

Reply
0 Kudos
4 Replies
Troy_Clavell
Immortal
Immortal

You may want to look at RVTools

hammer2
Contributor
Contributor

thanks.

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

...and if you like PowerCLI, you can use something like below


$VCenters = @("", "")
$reportfile = "C:\Scripts\Hosts-Sockets_Mem.xls"
Add-Content -Path $reportfile -Value "$(date)"
Add-Content -Path $reportfile -Value `r
Add-Content -Path $reportfile -Value "Host Name `t HW Type `t CPU `t Cores `t MHz `t MEM"
Foreach ($VC in $VCenters) {
Connect-VIServer $VC
Get-VMHost |Sort  Name |Get-View | ForEach-Object {
$HW = ($_.Hardware.SystemInfo.Vendor) + ($_.Hardware.SystemInfo.Model)
$CPU = ($_.Hardware.CpuInfo.NumCpuPackages)
$CORES = ($_.Hardware.CpuInfo.NumCpuCores)
$MHZ = ([math]::round($_.Hardware.CpuInfo.Hz / 1000000, 0))
$Mem = ([math]::round($_.Hardware.MemorySize / 1GB, 0))
Add-Content -Path $reportfile -Value "$($_.Name) `t  $($HW) `t $($CPU) `t $($CORES) `t $($MHZ) `t $($Mem) GB"
}
Disconnect-VIServer -Confirm:$false
}

Reply
0 Kudos
justinsmith
Enthusiast
Enthusiast

I've added all my vCenter servers, but it seems the report gets messed up (adds the same data mulitple times) when I do that.

Is there a away to have the output be distinguished by vCenter server?

Maybe add the vCenter name next to the time/date?

Reply
0 Kudos