VMware Cloud Community
anu2304
Contributor
Contributor

vsphere api for finding remaining licensed cpu

Hi,

This is a peculiar problem which I thought of asking. If I have a license to create VMs using vsphere upto 10 CPU. So if the user tries to create VMs having more than 10 CPU, it will fail. Is there a API to find the max licensed CPU for the user?

Tags (1)
Reply
0 Kudos
3 Replies
lamw
Community Manager
Community Manager

Yes, you can take a look here - http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.LicenseMan...

This information is reflected in the ESXi host under "License Features" and you should see a feature for n-way Virtual SMP for the # of CPUs that you could assign to a VM

anu2304
Contributor
Contributor

If I click esx host on vcenter 5.0 and go to configuration tab. Click Licensed Features  I found that product feature: Upto 16-way virtual CMP. Does this corresponds to 16 vCPU can be assigned to a single VM at max? Does this comes as part of key value pair LicenseManagerLicenseInfo?

Reply
0 Kudos
anu2304
Contributor
Contributor

Here is one more thing.

For 32-way vitual SMP, I can create max 8cpu with 2 cores VM or 16cpu VM

For 8-way virtual SMP, I can create max 4 cpu with 2 cores CM or 8cpu VM

Not sure how SMP number corresponds to max vCPU number that can be assigned to VM

Reply
0 Kudos