Hi,
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.
Main Topics
Browse All TopicsHi,
Here is my setup :
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 ???
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
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):
http://www.motobit.com/tip
http://www.jsiinc.com/SUBM
http://www.microsoft.com/r
http://groups.msn.com/wind
This site provides you with about the simplest solution to stick in a batch file (this is probably the info you are after?):
http://www.robvanderwoude.
This link is also useful:
http://personal-computer-t
If you wand a completely free - 'quick shut down' then look here:
http://www.winutility.com/
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)
c. Use a shareware/freeware solutions:
http://www.xpertdesign.de/
Enables you to run a script commands on the system attached to the UPS on shutdown (To place those trigger files in shares?)
This may also be of use (shutdown manager):
http://www.softpedia.com/g
or ID shutdown manager:
http://www.librarysmith.co
HTH:)
http://www.sysinternals.co
for details on psshutdown as mentioned by Eagle. Combined with your $15 executor seems to do exactly what you need:)
Hope that helps:)
http://www.myzips.com/soft
may also be of intrest as it supports Wake on LAN to restart the systems when power is returned:)
http://dfg1.netfirms.com/p
gives the ability to run a script on shutdown for $9.98 (cheaper than executor...but not as 'clean')
I think that's enough to keep you busy - Have fun!! :)
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.
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 !!
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.
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:
http://www.apcc.com/tools/
You need the business version to get access to all the triggers.
Business Accounts
Answer for Membership
by: Eagle6990Posted on 2005-01-18 at 11:37:13ID: 13075826
Depending on your UPS you can get some other free software from APC that will do exactly what you are looking for. It does require that your UPS has a network card installed on it which I believe we got for around $250.
e/include/ techspec_i ndex.cfm? b ase_sku=SF PCNS221
Here is the software: http://www.apc.com/resourc