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
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
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
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
small type-o in the above command. it is vimsvc, not vimsrc.
ex. vmware-vim-cmd vimsvc/license --source server