|Thanks to Slawomir Oczkowski for this new version where he has update and fix some minor bugs|
Here is what he writes about it:
Thanks for your great contribution. The script saved me lots of work.
Also the 'damien' improvment was crucial- credits to him too!
I did my own small contribution to the script and added/changed the following:
- choice for shutdown or poweroff at the end of the script
- improved comments and messages
- more cleanups/corrections (e.g. some of the rearly used "if" conditions didn't work because of using "=" instead of "-eq" for checking numeric vaules
- updated script header information (contributors)
- tested on ESX Server 3.5 Update 1 with APC PowerChute Agent v2.2.1 (pcns-2.2.1-100.i386.rpm) and APC SYMMETRA UPS
Thanks to both Slawomir Oczkowski and Damien for there feedback to make this script better.
The version is now V1.2008.08.08 and has now got it own page in my software section