I need to get a list off all the VMs in a given vSphere infrastructure and to get, for each vm, the number of vCPUs, the number of sockets, the number of cores, the CPU share level and number.
I need to get each value as a variable because I need to format the output according to a standard format.
I was able to create a script to get part of the information I need by copying from various forums and blogs but I am sure I made some mistakes, as for each VM it takes about 60 seconds and it is unusable.
Is there any efficient, optimized sample I can start from?
Regards
marius