I have a stand-alone ESX host running vSphere 4.1, without Virtual Center. The hosts have APC Powerchute configured to shutdown if the UPS runs low. One of the guests is on a subnet that cannot talk to the APC Network Management Card, so I cannot use PCNS. I need a script that will gracefully shut down one guest before the host shuts down. I have not done any scripting with vmware. Please indicate how to create the script and where it should be located. Should I have the APC network management card activate the script, or will the host automatically do it prior to shutting itself down?
Thanks in advance for your help.