En ocasiones por la razón que sea nos puede interesar conocer la fecha exacta de la instalación de un ESXi.
Con el comando esxcli lo podemos saber rápido y fácilmente, si ejecutamos esxcli system nos mostrará todas las opciones que tenemos. Esta opción esta disponible desde la versión de ESXi 6.5, Gracias Miquel!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
[root@ESXI01:~] esxcli system Usage: esxcli system {cmd} [cmd options] Available Namespaces: boot Operations relating to host boot that allow manipulation of VMkernel boot time configuration. coredump Operations pertaining to the VMkernel Core dump configuration. module Operations that allow manipulation of the VMkernel loadable modules and device drivers. Operations include load, list and setting options. process Commands relating to running processes. secpolicy Options related to VMkernel access control subsystem. These options are typically in place for specific workarounds or debugging. These commands should be used at the direction of VMware Support Engineers. security Operations pertaining to server authentication. settings Operations that allow viewing and manipulation of system settings. slp Commands pertaining to Service Location Protocol (SLP). stats Access to various system statistics syslog Operations relating to system logging visorfs Operations pertaining to the visorfs memory filesytem. wbem Commands pertaining to WEB Based Enterprise Management (WBEM) Agent configuration. account Manage user accounts. hostname Operations pertaining the network name of the ESX host. maintenanceMode Command to manage the system's maintenance mode. permission Manage permissions for accessing the ESXi host. shutdown Command to shutdown the system. snmp Commands pertaining to SNMPv1/v2c/v3 Agent configuration. time Commands to get and set system time. uuid Get the system UUID version Commands to get version information. welcomemsg Commands to get and set the welcome banner for DCUI. |
Seleccionamos esxcli system stats para conocer sus opciones, donde tenemos installtime y uptime.
1 2 3 4 5 6 |
[root@ESXI01:~] esxcli system stats Usage: esxcli system stats {cmd} [cmd options] Available Namespaces: installtime Commands to get information about software installation. uptime System uptime, in microseconds |
Ejecutamos esxcli system stats installtime y vemos que todavía nos falta un comando.
1 2 3 4 5 |
[root@ESXI01:~] esxcli system stats installtime Usage: esxcli system stats installtime {cmd} [cmd options] Available Commands: get Display the date and time when this system was first installed. Value will not change on subsequent updates. |
Y ya si, ejecutamos esxcli system stats installtime get , donde conoceremos exactamente el año,mes dia y hora exacta de la instalación. NOTA: el dato de la fecha exacta no se pierde con las actualizaciones que hagamos del hypervisor.
1 2 |
[root@ESXI01:~] esxcli system stats installtime get 2017-03-28T12:55:51 |
Saludos y espero que os sirva.
Mas entradas sobre esxcli:
https://aprendiendoavirtualizar.com/category/esxcli/