Planning to rebuild new Vcenter Instance but need help in retrieving License key from the existing Vcenter 6.0 using Command Line
Just a quick question. Don't you have access to the My VMware account on which the licenses have been registered? That's a much easier way to get the license key.
André
Unfortunately No. I do not have the account information to which the license was registered to. So I don't have an option here except to try and retrieve from Command line
Hi,
https://www.altaro.com/vmware/license-vcenter-esxi-vsan/
Best regards,
Alessandro Romeo
Thanks Alessandro.
I Tried the Solution provided on the link. But most of the services are not running on the Vcenter server so getting the below error.
The server certificate is not valid.
WARNING: THE DEFAULT BEHAVIOR UPON INVALID SERVER CERTIFICATE WILL CHANGE IN A FUTURE RELEASE. To ensure scripts are not affected by the change, use
Set-PowerCLIConfiguration to set a value for the InvalidCertificateAction option.
Connect-VIServer : 8/26/2019 10:40:26 AM Connect-VIServer The HTTP service located at https://10.194.33.249/sdk is unavailable. This could be
because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and
try accessing the service again later.
At line:1 char:1
+ Connect-VIServer 10.194.33.249
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], ViError
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_Exception,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer
PowerCLI C:\>
Services running and Stopped on Vcenter 6.0.
INFO:root:Running:
applmgmt (VMware Appliance Management Service) vmafdd (VMware Authentication Framework) vmcad (VMware Certificate Service) vmdird (VMware Directory Service) vmware-cis-license (VMware License Service) vmware-cm (VMware Component Manager) vmware-psc-client (VMware Platform Services Controller Client) vmware-rhttpproxy (VMware HTTP Reverse Proxy) vmware-sca (VMware Service Control Agent) vmware-sts-idmd (VMware Identity Management Service) vmware-stsd (VMware Security Token Service) vmware-syslog (VMware Common Logging Service) vmware-syslog-health (VMware Syslog Health Service) vmware-vapi-endpoint (VMware vAPI Endpoint) vmware-vpostgres (VMware Postgres)
Stopped:
vmware-eam (VMware ESX Agent Manager) vmware-invsvc (VMware Inventory Service) vmware-mbcs (VMware Message Bus Configuration Service) vmware-netdumper (VMware vSphere ESXi Dump Collector) vmware-perfcharts (VMware Performance Charts) vmware-rbd-watchdog (VMware vSphere Auto Deploy Waiter) vmware-sps (VMware vSphere Profile-Driven Storage Service) vmware-vdcs (VMware Content Library Service) vmware-vpx-workflow (VMware vCenter Workflow Manager) vmware-vpxd (VMware vCenter Server) vmware-vsan-health (VMware VSAN Health Service) vmware-vsm (VMware vService Manager) vmware-vws (VMware System and Hardware Health Manager) vsphere-client ()
vcntrs2v:~ #
If you install a new vCenter you have 60 day of Trial left to get your keys.
About vCenter license. It might be possible to query the vPostgreSQL DB and hope that the informations is stored somewhere in clear text.
Maybe VMware Knowledge Base can be usefull.
Here are infos how to delete license informations: VMware Knowledge Base . So if you have luck a select * .... will give you the information youre looking for.
Regards,
Joerg
Hi,
In this post they discussed the same problem:
Best regards,
Alessandro Romeo
