So I came up with this the other day as an inexpensive way of gracefully shutting down 3 servers plugged into our 1 ups. Thought I'd share.
The ups is an APC smartups1000. The com cable is plugged into only 1 server, naturally, only that server knows anything about what's going on power-wise. The servers are NT but this would work for win2k as well.
Then you head over to system internals http://www.systeminternals.com and download the powertools for nt/2k. In the is an executable called psshutdown.exe
Place this file in one of the folders that's in the PATH of the OS.
then you write an little cmd file that calls the exe
START psshutdown -r (reboot) \\computername
Then you set the APC utility to run the cmd file when there's no power and x number of minutes left on battery.
voila, servers shutdown nicely everyone is happy
No big expensive programs to buy. APC gives you software free to manage 5 ups nodes.
This would work with other UPS's and the default NT/2K ups management because it let's you run a command file after x minutes on battery as well.
L8r
"A RONSTER!"
The ups is an APC smartups1000. The com cable is plugged into only 1 server, naturally, only that server knows anything about what's going on power-wise. The servers are NT but this would work for win2k as well.
Then you head over to system internals http://www.systeminternals.com and download the powertools for nt/2k. In the is an executable called psshutdown.exe
Place this file in one of the folders that's in the PATH of the OS.
then you write an little cmd file that calls the exe
START psshutdown -r (reboot) \\computername
Then you set the APC utility to run the cmd file when there's no power and x number of minutes left on battery.
voila, servers shutdown nicely everyone is happy
No big expensive programs to buy. APC gives you software free to manage 5 ups nodes.
This would work with other UPS's and the default NT/2K ups management because it let's you run a command file after x minutes on battery as well.
L8r
"A RONSTER!"