Hi,
I am using backup script for VM backups on our ESXi server.
Before the actual backup starts the state of VM is checked via "getstate" command. When its ON the machine is shutted down via command "stop soft" the gestate commend is repeated until the result is OFF. And this is the problem. It seems that the state is just marked as OFF and it does not reflects real state of the machine. Example: I shut down windows server and after 5 secs is the state OFF while I can see on console that the server is still being shutted down.
I can use uptime switch or remote PS | grep but I am looking for something clear.
Any suggestions ?
thanks