I've been using the VMware Perl SDK.
I've been writing a script to query host licensing.
When I connect directly to a host, I am able to query that hosts ESX(i)'s license, if it is in evaluation mode or not. I am happy with that functionality.
When I connect to a vCenter server, I want to be able to change the licenseManager focus to be a specific host. How do I do this?
for example:
my $service_content = Vim::get_service_content();
my $license_manager = Vim::get_view(mo_ref => $service_content->licenseManager);
With the above code, when I connect to vCenter the focus is on the vCenter server's licenses and all licenses it has.
I would like to be able to focus on a particular host. How do I do this this?