The && construct requires that the previous command complete successfully before the next one is run, so they are not parallel.
Hi some UPS manufacture like APC providing same software , please check with your UPS manufacture
please award points if you see fit.Thanks
I knew of the '&&' construct from linux. I initially had the shutdown and poweroff separate from each other.
I will install a new Windows test virtual machine today and see if I can use plink to successfully power down the host.
The above script does work.
However, I also discovered that you can get the virtual machines to suspend when the host powers off. I was aware that you could get them to power on with the host, it just never occured to me that a power down was possible as well.
That said, is there any reason to not let ESXi suspend hosts when it powers down? I've tested it on a test host with a couple of test VMs and it appears to be working. All I had to do was execute `/sbin/shutdown.sh && /sbin/poweroff` from my VM with APC Powerchute, and the VMs suspended themselves and powered themselves up automatically at the next start.
The only downside I can think of is forgetting to set a new VM up to auto start/stop - that could cause an issue. Are there any other reasons? Right now if the first command fails to suspend it will try it again during the shutdown script.