VMware {code} Community
kbr5678
Contributor
Contributor

Esxserver License Feature Details

Hi...

how to get Esx License Feature Details(Like HA,DRS,Motion....) using SDK 2.5

Reply
0 Kudos
2 Replies
oreeh
Immortal
Immortal

FYI: this thread has been moved to the Management APIs (VI Perl, VI SDK, CIM SDK) forum.

Oliver Reeh[/i]

[VMware Communities User Moderator|http://communities.vmware.com/docs/DOC-2444][/i]

Reply
0 Kudos
lamw
Community Manager
Community Manager

You can get that information from this VMware Health Check report: http://communities.vmware.com/docs/DOC-9420

Here is the quick snippet regarding the licensed features and you can sub-filter to only show what you want based on the featureName:

my $lic_mgr = Vim::get_view (mo_ref => $content->licenseManager);
my $lic_src = $lic_mgr->source;
my $lic_avail;
		eval { $lic_avail = $lic_mgr->QueryLicenseSourceAvailability(); };
		if(!$@) {
	        	foreach(@$lic_avail) {
				my $consumed = ($_->total - $_->available);
				print REPORT_OUTPUT "<tr><td>",$_->feature->featureName,"</td><td>",$consumed,"</td><td>",$_->available,"</td><td>",$_->total,"</td></tr>\n";
			}
		}

For more information take a look a this page: http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.LicenseManager.html

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Reply
0 Kudos