using reports is there a way to show total physical cpu
You may want to look at RVTools
thanks.
...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
}
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?
