The
gettoolslastactive option
indicates whether VMware Tools is installed and whether the guest operating
system is responding normally.
vmware-cmd -H <vc_system> -U <user> -P <password> --vihost <esx_host> /vmfs/volumes/Storage2/testvm/testvm.vmx gettoolslastactive
The command returns an integer indicating how much time has passed,
in seconds, since the last heartbeat was detected from the VMware Tools
service. This value is initialized to zero when a virtual machine powers on.
The value stays at zero until the first heartbeat is detected. After the first
heartbeat, the value is always greater than zero until the virtual machine is
power cycled again. The command returns one of the following values.
■
|
0 – VMware Tools is not
installed or not running.
|
■
|
1 – Guest operating system
is responding normally.
|
■
|
5 – Intermittent heartbeat.
There might be a problem with the guest operating system.
|
■
|
100 – No heartbeat. Guest
operating system might have stopped responding.
|
|