VMware Cloud Community
BenjaminAttal
Enthusiast
Enthusiast
Jump to solution

licensed feature

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

0 Kudos
1 Solution

Accepted Solutions
hugopeeters
Hot Shot
Hot Shot
Jump to solution

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.

View solution in original post

0 Kudos
4 Replies
hugopeeters
Hot Shot
Hot Shot
Jump to solution

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.

0 Kudos
admin
Immortal
Immortal
Jump to solution

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

BenjaminAttal
Enthusiast
Enthusiast
Jump to solution

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 ?

0 Kudos
hugopeeters
Hot Shot
Hot Shot
Jump to solution

That's a great shortcut! Very welcome indeed.

Thanks for the tip!

0 Kudos