I've come up with a potential plan to help in this scenario but not exactly sure how I can script this.
My plan is...
1) Delay VM Startup order by 5 minutes for each per host.
2) Setup a text file on my vCenter server ( may in /home directory ) called Enable_Host_Maintenance
3) At the point of host failure/outage... I recover my vCenter server ( using Arcserve Instant VM ) if needed and add the host name to this file
4) On all my hosts, setup a script that is triggered via /etc/rc.local.d/local.sh
This script needs to read the contents of Enable_Host_Maintenance through a remote ssh connection ( or some other means if anyone can recommend? ) and if the current hostname matches a line then put the server into Maintenance Mode... preventing original the VM's ( that have been recovered... ) from starting automatically.
Has anyone done anything similar to this or had experience of setting up bash scripts ( or PowerCLI ) to read a file from a host to VCSA?
Any advice or pointers would be welcome.