Home All Groups Group Topic Archive Search About

Script to reboot multiple servers then send e-mail



Author
26 Oct 2007 1:13 AM
tidehigh
I need a script that will do the following:

1) reboot serverA
2) wait for serverA to come back online or fail after 10 minutes
3) reboot serverB
4) wait for serverB to come back online or fail after 10 minutes
5) reboot serverC
6) wait for serverC to come back online or fail after 10 minutes
7) send an e-mail to multiple people with the following results:

serverA was rebooted at <time>.
serverA came back online at <time> OR
serverA did not come back online after 10 minutes and may need attention!

serverB was rebooted at <time>.
serverB came back online at <time> OR
serverB did not come back online after 10 minutes and may need attention!

serverC was rebooted at <time>.
serverC came back online at <time> OR
serverC did not come back online after 10 minutes and may need attention!

Any help would be greatly appreciated!

AddThis Social Bookmark Button