VMware Cloud Community
JuhaA
Contributor
Contributor

How to see ESXi license expiry date using the ESX command line interface?

Hi,

Would anyone know how to see license expiry date through the ESX cli (SSH interface). I cannot access the server using vSphere client.

I tried "vim-cmd vimsvc/license --show", but that does not show any validity period or expiry time.

Thanks!

Tags (2)
8 Replies
john23
Commander
Commander

check in esxcfg-info command.. not sure (give a try)

-A

Thanks -A Read my blogs: www.openwriteup.com
Reply
0 Kudos
SatyS
Hot Shot
Hot Shot

# vim-cmd vimsvc/license --show|grep -i date

     [expirationDate] = 2015-01-01T00:00:00Z

This shows expiry date

Hope this helps

-SatyS

If you find this useful,please mark the answer as correct/helpful Regards, SatyS http://myvirtuallearning.wordpress.com/
SatyS
Hot Shot
Hot Shot

Please award points by marking the answer as correct/helpful if you find it useful.

-SatyS

If you find this useful,please mark the answer as correct/helpful Regards, SatyS http://myvirtuallearning.wordpress.com/
Reply
0 Kudos
JuhaA
Contributor
Contributor

Hi Saty,

Thanks I tried that and there was no entry for expiry date. Does that mean there is no expiry date for the license?

BTW, How do I award points? Haven't used this forum before :smileylaugh:

~ # vim-cmd vimsvc/license --show|grep -i date

~ # vim-cmd vimsvc/license --show|grep -i exp

   vmodl key: esxExpress.vram

~ #

/Juha

Reply
0 Kudos
abhilashhb
VMware Employee
VMware Employee

To award points you will have to select either helpful or correct answer at the bottom of others' replies.

If the answer was the exact thing you were looking for then choose correct answer and if the answer helped you towards figuring out the issue choose helpful answer Smiley Happy

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

stefanskoglund
Contributor
Contributor

Helpful answer except this:

the questioneer didn't add '-i' to the grep command so

vim-cmd vimsvc/license --show |grep date

doesn't works.

It should of course be

----

~ # vim-cmd vimsvc/license --show|grep -i date

     [expirationDate] = 2015-05-15T11:23:03.989903Z

-----

Reply
0 Kudos
habaspur
Contributor
Contributor

sorry i tried with both command by didn't get any information... if any other way then suggest...

Reply
0 Kudos
JPReyes
Contributor
Contributor

Weird, in my ESXi 5.1 for test the command perfectly work.

The ESXi Shell can be disabled by an administrative user. See the

vSphere Security documentation for more information.

~ #

~ # vim-cmd vimsvc/license --show | grep -i date

     [expirationDate] = 2016-06-19T20:11:32.624352Z

Reply
0 Kudos