I have ssh login to an ESXi 5 host.
All the guests have vmware tools running, so they can be shut down by the host properly.
I would like an equivalent for this menu option in vSphere client:
It shuts down all the guests automatically (if they have vmware tools running) and then the host itself.
Is there such a "smart" shutdown all command on the ESXi 5 commandline?
I think I found an answer. This script could do it:
http://www.virtu-al.net/2010/01/06/powercli-shutdown-your-virtual-infrastructure/
Please note the part in line 17ff where it waits for the VMs to be Shutdown cleanly
Thank you Sergei!