Does anyone know of a way to extend the management extenders to gather more data about the ESXi than what is given now?
I am specifically trying to find the information on CPU Sockets and Cores. I have found a script that will get the info, but wanted to know how it could be incorporated into BigFix’s Management Extender.
Get ESXi CPU Sockets and Cores Per Socket via PowerCLI
(https://communities.vmware.com/thread/473643)
$result = @()
$vmhost = get-vmhost
foreach ($esxi in $vmhost) {
$HostCPU = $esxi.ExtensionData.Summary.Hardware.NumCpuPkgs
$HostCPUcore = $esxi.ExtensionData.Summary.Hardware.NumCpuCores/$HostCPU
$obj = new-object psobject
$obj | Add-Member -MemberType NoteProperty -Name name -Value $esxi.Name
$obj | Add-Member -MemberType NoteProperty -Name CPUSocket -Value $HostCPU
$obj | Add-Member -MemberType NoteProperty -Name Corepersocket -Value $HostCPUcore
$result += $obj
}
$result | Export-CSV "c:\esxi-audit-info.csv" -notypeinformation
Any ideas? Is this something BF could do already and I am missing it?