VMware Cloud Community
Naineyess
Enthusiast
Enthusiast
Jump to solution

Get number of vCPU( Cores per shocket) for vCenter VM

Hi..

I am trying to up scale vCPU number by using a script. I am successful when the number of cores per shocket is 1,but this is not working if the number of cores is more than one, so I want to check the number of cores per shocket of the VM.

Please help me to get number of vCPU(cores per shocket) for vCenter VM. Reply asap it's urgent..

Thanks!!

Reply
0 Kudos
1 Solution

Accepted Solutions
Dan_Linsley
VMware Employee
VMware Employee
Jump to solution

You're looking for: vm.config.hardware.numCoresPerSocket  where vm is a VC:VirtualMachine object.

Your total number of cores would be (numCoresPerSocket x numCPU)

Check this out for some more hints: numCoresPerSocket

View solution in original post

Reply
0 Kudos
2 Replies
Dan_Linsley
VMware Employee
VMware Employee
Jump to solution

You're looking for: vm.config.hardware.numCoresPerSocket  where vm is a VC:VirtualMachine object.

Your total number of cores would be (numCoresPerSocket x numCPU)

Check this out for some more hints: numCoresPerSocket

Reply
0 Kudos
Naineyess
Enthusiast
Enthusiast
Jump to solution

Thanks Dan Smiley Happy

Reply
0 Kudos