Greetings,
We are tasked with giving a list of all our VMs with their hostname, number of cpu's, OS and number of cores per cpu for an audit.
I immediately said this wouldn't be a problem with PowerCLI. However I seem to have more trouble with it than expected.
Getting the number of CPUs isn't a problem, but the moment I want to split the number of cores and the number of sockets I seem to hit a dead end.
I found the following relevant community entries:
Re: vSphere 5. vCPU Sockets and Cores per CPU bug (PowerCLI)
Acessing Virtual Machine Advanced Settings | VMware vSphere Blog - VMware Blogs
Retrieve and Set VM Advanced Configuration (VMX) settings
But neither seemed to give me the right entry. The advanced configuration settings don't seem to contain the number of cores/sockets and the normal Get-View and Get-VM commands don't seem to make a difference between cores and sockets and just give the number of CPUs.
Seeing as we need these settings for an audit I doubt I am the first to need this information. Does anybody have any idea how to get this information?
Please note it is the number of cores and sockets of a VM, not from an ESXi host. :smileyhappy:
Thanks in advance,
Bram