I am looking for a way to know if an ESX is pointing to a license server or is using a local license file.
The "licensed feature" must be an ESX property, but I cannot find the right one...
Any idea of the way to get that with vi toolkit ?
thanks !
ben
I found it here:
$svcRef = new-object VMware.Vim.ManagedObjectReference; $svcRef.Type = "ServiceInstance"; $svcRef.Value = "ServiceInstance"; $serviceInstance = get-view $svcRef; $lic_ref = $serviceInstance.content.licensemanager; $LM = Get-View $lic_ref; $LM.Source.LicenseServer
I don't know if it can be found on a Per ESX server basis.
I found it here:
$svcRef = new-object VMware.Vim.ManagedObjectReference; $svcRef.Type = "ServiceInstance"; $svcRef.Value = "ServiceInstance"; $serviceInstance = get-view $svcRef; $lic_ref = $serviceInstance.content.licensemanager; $LM = Get-View $lic_ref; $LM.Source.LicenseServer
I don't know if it can be found on a Per ESX server basis.
Since it's in the ServiceInstance you have to talk directly to ESX to get the info.
One other thing, we added a shortcut for getting the ServiceInstance view:
get-view serviceinstance
great !
Thx that's what I was looking for !
get-view serviceinstance is a very powerfull command.
Is there any documentation available on that feature ?
That's a great shortcut! Very welcome indeed.
Thanks for the tip!