ghettoHostShutdown41.pl

Version 6

    This script is an update to ghettoUPSHostShutdown.pl which worked with ESX(i) 3.5 and 4.0 hosts. The script is updated to support the recent library changes in vMA 4.1. It may work with earlier version, but they have not been tested.

     

    Defaults have been chosen for all of the previously required options, except the timeout option. That option remains required. The host_operation option is defaulted to "dryrun" to avoid accidental shutdowns. The vm_operation option uses the recommended "suspend" for quicker shutdowns. The ups_vm was changed to vma_name to emphasize that it is the display name of the vMA server. The short hostname of this server is used as its default. Although not originally required, logoutput was changed to default to STDOUT. The sendmail option was changed to a boolean, and if it is specified without a permanent logoutput file, a temporary one will be created.

     

    Besides these default changes, all of the previous robust capablities and features are available when shutting down your VMware environment in a

    time-critical situation, such as a power failure.  The script will ensure that only one instance of the script is running, and it is possible to run this script on a vMA whose host is not part of those managed by that vMA.