UPS to shutdown two computers
#1
Posted 05 November 2007 - 08:15 PM
Thanks in advance!
#2
Posted 05 November 2007 - 09:24 PM
the other idea I had is to wire the output relays directly to the motherboards power on/off button. but the drawback there is if the alarm is triggered once, the pc would soft shutdown but would start back up if it was triggered again (power comes back on but goes off)
I doubt that UPS is the same size you'd be looking for your desktops (theyre buly as heck and weigh a ton) but i know that those 2 features exist on that model. If either of those ideas work for you just look for a workstation class with controllable outlet groups or output relays
#3
Posted 06 November 2007 - 07:34 AM
Example with remote shutdown command:
http://forums.isxusergroups.com/thread.jsp...?messageID=1586
Here's a screenshot from my PowerChute config pages.
Other UPS apps might have an email notification option, so just run netcat or a mail server which has exec rules.
#4
Posted 06 November 2007 - 11:26 AM
http://www.apc.com/resource/include/techsp...se_sku=AP9607CB
If that doesn't come up (because of their country selection thing), the part number is AP9607CB. Of course, that does you no good if the system doesn't have serial ports (like the Asus P5B and P5K line. And some of the newer UPSes are coming with USB only connections. I'll look a bit more and see what I can find...one would think APC would have a USB interface expander.
I have an APC SmartUPS 1400 that I use for my file server. It also has my cable/VOIP modem, router and switch plugged into it. It sits at about 15-20% load (if that) most of the time. That gives it PLENTY of runtime (especially if it's a short power outtage...I don't even have to worry about it shutting down).
This post has been edited by nmX.Memnoch: 06 November 2007 - 11:28 AM
#5
Posted 06 November 2007 - 02:01 PM
nmX.Memnoch, on Nov 6 2007, 09:26 AM, said:
Thanks for the info. I'm wondering though, if all else fails, would I be able to use a USB->Serial adaptor like this one. to create the interface? It looks like I might be able to plug that adaptor into the interface expander, and then just deal with USB cables from there.
Also, if that works, could I use the USB connection for one computer, and the serial connection for the other (assuming the UPS has both)?
#6
Posted 06 November 2007 - 02:27 PM
Zxian, on Nov 6 2007, 02:01 PM, said:
nmX.Memnoch, on Nov 6 2007, 09:26 AM, said:
Thanks for the info. I'm wondering though, if all else fails, would I be able to use a USB->Serial adaptor like this one. to create the interface? It looks like I might be able to plug that adaptor into the interface expander, and then just deal with USB cables from there.
Zxian, on Nov 6 2007, 02:01 PM, said:
This post has been edited by nmX.Memnoch: 06 November 2007 - 02:29 PM
#7
Posted 06 November 2007 - 02:47 PM
I've been digging around the net for a while, and read up on some Linux implementations where one system would initiate the shutdown of another. Is there any simple way I could do that from my file server to my workstation? I'd connect the two machines, as well as my router and switch to the UPS, so they'd all be online and working. Something like what this KB describes, no?
#8
Posted 06 November 2007 - 03:13 PM
Zxian, on Nov 6 2007, 02:47 PM, said:
SmaugyGrrr, on Nov 6 2007, 07:34 AM, said:
There's your answer. It's pretty easy to setup, but you do have to install like three different components on the computer that has the actual (data) connection to the UPS. You can have it initiate a custom script (or utility) that would shutdown any other computer(s) plugged into the UPS. Of course, you would also have to have the switch plugged into the UPS (which you already plan on doing) so the shutdown command can be sent across the network. No sense in sending a shutdown command if the network ain't there.
All you need is the following command in your .cmd file (this is for the XP version, the 2003 version requires a few more options):
shutdown -m \\COMPUTERNAME -s -t 00 -f
-m specifies the remote computer
-s is for shutdown
-t is the wait time
-f forces applications to close
BTW, you can also do this with the built in Windows XP and Windows Server 2003 UPS tools. In other words, the third party APC utility isn't strictly necessary. It does, however, monitor other settings about the UPS as well as providing for email notification.
SmaugyGrrr, on Nov 6 2007, 07:34 AM, said:
Email notification doesn't do much good though if it's a neighborhood outage and the local ISP switch/router is down.
This post has been edited by nmX.Memnoch: 06 November 2007 - 03:15 PM
#9
Posted 06 November 2007 - 05:26 PM
EDIT - So the UPS works as it should. I managed to get Server 2003 to shutdown my workstation remotely, but only after uninstalling all APC software. The Business Edition wouldn't recognize my UPS (since it's not a SmartUPS series), and the personal edition has no ability to manage anything remotely. After uninstalling the APC Personal Edition software, I setup low battery and critical battery warnings to shutdown my workstation and server respectively.
I did find one snag with the whole setup though - I inherently have a ground loop setup with my workstation and speakers. This seems to cause more problems with EMI when the whole setup is connected to the UPS than when it's connected to a straight surge protector. I'll have to play around with this a bit more to track down the exact cause, but I have a feeling that it's due to the built-in AVR on the UPS.
#10
Posted 07 November 2007 - 12:12 AM
At any rate, you should still be able to get it to work using the built in Windows stuff.
Also, don't plug your speakers into the UPS. You don't need sound for the PC to shutdown.
This post has been edited by nmX.Memnoch: 07 November 2007 - 12:13 AM
#11
Posted 07 November 2007 - 12:41 PM
I'll have to play around with the electrical configuration to see if I can fix the problem.
#13
Posted 24 November 2007 - 07:31 AM
1. should 1 UPS fail, the whole load doesn't drop because each server has a redundant powersupply.
2. I actually get extended runtime in the case of a power outage because there are 2 batteries holding up the load instead of 1
It's a more expensive route than the powerchute business edition, but there's a lot more you can do and monitor with the network card as opposed to the business edition software.



Help
Back to top









