How to obtain a new XenServer license using only the command line

xenxenserver

Many sites explain how to renew the license using XenCenter. Is there a way to do this directly from the console?

Best Answer

The question is probably outdated, but just reference. From the XenServer 6.1.0 Licensing FAQ:

Q: Can I apply a license without using XenCenter?

A: Yes, you can use the xe CLI. Run the host-apply-edition command. For example, enter the following:

xe host-apply-edition edition=advanced|enterprise|platinum|enterprise-xd \ license-server-address=<license_server_address>host-uuid=<uuid_of_host> \ license-server-port=<license_server_port>