I have 12 Servers varying in OS from NT4Server to 2003Server and in hardware from PCServer325 to Xseries server
All the Servers are plugged on UPS but only 6 of them are actually programmed for auto shutdown in case of a power failure, the others would fail and crash after the battery run dead
What I need to do is to find a software that would know there is a power failure and that could send a shutdown command on all the servers without the automatic shutdown.
Right now I use APC Powerchute Business Edition Std ...
Is there any software or combination of software that could execute a command prompt in case a power failure occurs ? if so what is the command line I have to execute to shut the other servers down ???
First I do not have a ups with network card, and yes I do have some software that came with my card, however not giving me the latitute of remote shutdowning my other servers.
matanguay
ASKER
I would like a solution without spending money, like a free software monitoring the UPS, then sending a shutdown command to all other servers.
Eagle6990
I just wanted to bring that software to your attention since it is also free software from APC but different than what you have.
I was looking for something with a very similar situation as yours. I haven't used PowerChute lately but if it has an option to run a batch file on shutdown, then you could use psshutdown from www.sysinternals.com that could fire off before your monitored server went down that would shutdown the rest of your servers.
The shutdown bit is easy, as there are loads of links on the web to shutdown scripts and information on them(some systems may already have the necessary code installed):
The difficult bit is communicating the need to shutdown!
Ideas include:
a. In your favourite scripting language read the contents of a share on the system concerned, that the PC connected to the UPS, leaves a file in during its shut down process:
net use z: \\otherPC\powerfailshare
copy trigger.txt z:
On each PC to be triggered
check for trigger.txt
if so, shutdown,
else pause 60 secs
redo
In whatever language available
b. A program running on all systems (an agent) is communicated with by a process on the PC connected to the UPS to tell it to shut down the system? (Hmmm PowerChute Business Edition - ( v. 6.0.2 ) - STD seems to offer this functionality..but over a network)
One warning about creating a shutdown script (which you can easily do with a local group policy setting)
Every time you shutdown one of the servers with the script, it will start shutting down all of your other servers. If the only time your server is shut down is on a power outage then this is fine.
pjedmond
Excellent point!
CBUSHAW
for the 2k3 servers, have one of the other servers run a script before being automatically shutdown by the ups, the command you are looking for is shutdown. It works with every xp or newer machine, includnig 2003 server. And is on the support cd for 2000 so the file can be put on 2000. Run it as shutdown -m SERVERNAME -s or for more open the command prompt and type shutdown /?
All those are great .. these are very good solutions !! .. .. the only problem is that if I go with almost any of your suggested methods, it will shutdown the others servers every time I shutdown the trigger computer.
Is there a UPS monitoring software that can see that the UPS is working on battery and then run any of your commands or suggestions ?? .. ..
I think with this precision that would be the end of this question.
Thanks to all !!
matanguay
ASKER
I'm still waiting for some help.
To summarize, I need to have a UPS monitoring software capable of shutting down other servers when the power is down.
pjedmond
I think that either you or we are totally missing the point?
You have 6 servers that already programmed to shutdown. Using any of the above suggesstions, you can get any of these 6 to shut the rest down.
If you're worried about it shutting down the rest when you shut down 1 PC, then you create a seperate link on the desktop to do a direct shutdown...as per the command line options already given, which will avoid any of the triggers concerned.
Otherwise, you need to look at the current software that you are using (APC Powerchute) and find a trigger to run a program from it on receiving a power failure signal. Quote from Powerchute specs for serial connection:
Event Handling
Over 35 Power Events For each power or environmental event, choose as many as seven different response actions (i.e. page, email, log event, broadcast, run command file, and shutdown).
Paging Receive timely pages for power and environmental events
Email Receive timely email alerts for power and environmental events.
Broadcast Receive timely broadcasts for power and environmental events
Command File Run a command file to shutdown applications before OS shutdown is initiated
Any of the programable events are capable of triggering what you already want...as is the command file.
If this is not what you've got, then please provide OS of these 6 configured PCs that do shut down, software versions and type, and method of connection, then the experts may be able to be more specific. I have a setup that I should be able to test your requirements on exactly provided enough detail is given.
matanguay
ASKER
pjedmond,
I checked with my APC Powerchute and there was no trigger at all. All there was was Paging/Email Alert.
How do I find those EVENT HANDLING events ??
Emax_Solutions
Maybe you can run a shutdown script for the rest of the servers and an ABORT shutdown script for the main server. This way, the shutdown sequence will be aborted on the main server.
shutdown -a is the command i think, but you can look this up further.
The default UPS is attached to the PC via a serial cable. The able sends information about the state of the UPS. All information about power supply state and UPS status are communicated over this link. All that is required is that this information is received and acted on to perform the tasks you require. The default client provided by the APC powerchute UPS is fairly limited.
You can download demo versions of the various versions here:
First I do not have a ups with network card, and yes I do have some software that came with my card, however not giving me the latitute of remote shutdowning my other servers.