If you need to locate the ESXi license key, you can access it from the vSphere Client. This is the recommended method if you are not local to the host and cannot access the direct console.

1

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

2

Select the Configuration tab and click Licensed Features.

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