Is there a way to find the logical core count in PowerCLI?
My first idea was something like the code below, but that returns physical cores.
$hostview = get-vmhost $hostname | get-view
$hostview.hardware.cpuinfo.numcpucores
I'm pretty sure he's referring to the properties of his physical host and not to VMs.
And he was pretty close already, just query the NumCpuThreads property instead:
$hostview.hardware.cpuinfo.NumCpuThreads
16
$hostview.hardware.cpuinfo.numcpucores
8
You mean something like this Vcpu per Guest
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm pretty sure he's referring to the properties of his physical host and not to VMs.
And he was pretty close already, just query the NumCpuThreads property instead:
$hostview.hardware.cpuinfo.NumCpuThreads
16
$hostview.hardware.cpuinfo.numcpucores
8
That was it. Thanks!