VMware Cloud Community
Lofty
Enthusiast
Enthusiast

Licensing ESX from Command Line

Hey all,

I'm trying to find a single command to execute from within the ESX COS that will allow me to set the licensing information for the ESX host.

Other than editing /etc/vmware/license.cfg and restarting mgmt-vmware, does anyone know of another command?

Ta

S

Thanks Lofty PS. If you found my response helpful, think about awarding some points.
0 Kudos
4 Replies
Texiwill
Leadership
Leadership

Hello,

No, but you can use 'sed' to create a single 'edit' command for license.cfg and then restart mgmt-vmware all within a simple script.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/

Blue Gears Blogs - http://www.itworld.com/ and http://www.networkworld.com/community/haletky

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
Karunakar
Hot Shot
Hot Shot

Hi,

Can you try to look in to the below URL, this might be helpfull, if you are having a licese server.

If the license is for a server and not a host license, it is possible to configure the server to see the License Server. To do this, modify the file /etc/vmware/license.cfg and set the MODE option to be server and the SERVER option to be 27000@licenseServerIPAddress. The hostname of the License Server can also be used. If the License Server is unreachable due to a DNS issue for more than 14 days, all licenses are revoked and no new VMs can be booted on the ESX Server until such time as the problem is fixed.

-Karunakar

0 Kudos
Lofty
Enthusiast
Enthusiast

Got it!

For those that are trying to do the same, use the following -

vmware-vim-cmd vimsrc/license --source server <your_license_server_here>

Ta

S

Thanks Lofty PS. If you found my response helpful, think about awarding some points.
0 Kudos
mfarace
Contributor
Contributor

small type-o in the above command. it is vimsvc, not vimsrc.

ex. vmware-vim-cmd vimsvc/license --source server

0 Kudos