If you are not local to the host and cannot access the direct console, use the vSphere Client to access the ESXi license key.

1

From the vSphere Client, select the host in the inventory.

2

Click the Configuration tab and click Licensed Features.

The license key appears in the form XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.