How to get windows vCenter server's license expiration date and license type using python script

605 views Asked by At

Can someone please suggest me a module which gets vCenter server's license expiration date and license type.

I tried to search from https://github.com/vmware/pyvmomi-community-samples but could not find any.

I need information(Displayed in attachment) using python. enter image description here

1

There are 1 answers

0
YSK On

You should be able to use the LicenseManager for this. Try using si.RetrieveContent().licenseManager and call methods from there.

Note that the LicenseManager is deprecated starting vSphere 6.0, but according to this answer they'll still be around for some time and it looks like the CIS API isn't documented even for vSphere 6.5.