+ Post New Thread
Results 1 to 14 of 14
How do you do....it? Thread, Shut down 4 servers using one UPS on power fail in Technical; I have just installed 4 new ibm 1u rack servers that will be powered from one APC Smart UPS 1500. ...
  1. #1
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    671
    Thank Post
    41
    Thanked 16 Times in 15 Posts
    Rep Power
    20

    Shut down 4 servers using one UPS on power fail

    I have just installed 4 new ibm 1u rack servers that will be powered from one APC Smart UPS 1500.

    I can only attatch one server to the UPS by either serial or usb, so how do I get the other servers to shut down in the event of a power failure? just to add a complication 1 is running Red Hat Linux the other 3 are running Server 2003.

    There is probably a simple answer but for the life of me I can't find a referance to this senario

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Shut down 4 servers using one UPS on power fail

    A ShareUPS - I have a spare one if you want to make me an offer (not quite enough cables mind)

    http://apc.com/resource/include/tech...ase_sku=AP9207 - they are rather pricey usually.

  3. #3
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    671
    Thank Post
    41
    Thanked 16 Times in 15 Posts
    Rep Power
    20

    Re: Shut down 4 servers using one UPS on power fail

    Ric I didn't even think about a hardware solution.....doh. I have no money left in my budget and there is noone here in the school now till late august early sept. I am interested depending on price. But for the moment is there a software solution?

  4. #4


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,461
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195

    Re: Shut down 4 servers using one UPS on power fail

    Yes - apcupsd on the server that the ups is plugged into.

    There is another, newer ups daemon. I'll find some links in a tic.

  5. #5


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,461
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195

    Re: Shut down 4 servers using one UPS on power fail

    http://www.apcupsd.com/ APC centric, and its the one we use in Smoothie.
    http://www.networkupstools.org/ NUT - more UPS compatible, there's often a flare on tech@ of someone proposing we move to this one ;-P

    1. install daemon on server that has ups usb/serial plugged into it
    2. install on other servers, and point them at central location
    3. make sure server with ups cable is set to last a few mins longer than the others before shutdown

    Jobs a good un.

  6. #6
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    671
    Thank Post
    41
    Thanked 16 Times in 15 Posts
    Rep Power
    20

    Re: Shut down 4 servers using one UPS on power fail

    Thanks tom looks just like what I need

  7. #7

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144

    Re: Shut down 4 servers using one UPS on power fail

    One tip from me.

    Make sure the switch that connects all your servers together is also powered from the UPS, else in the event of a proper power failure, they won't receive the shutdown signal from the server connected to the UPS. Simple point, but one that I've seen overlooked many many times!

    Cheers,

    Mike.

  8. #8
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    671
    Thank Post
    41
    Thanked 16 Times in 15 Posts
    Rep Power
    20

    Re: Shut down 4 servers using one UPS on power fail

    Thanks maniac thats a good point and I've noted it.

  9. #9
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Shut down 4 servers using one UPS on power fail

    Oooo think that may be overlooked here! Best go check...

  10. #10
    Butuz's Avatar
    Join Date
    Feb 2007
    Location
    Wales, UK
    Posts
    1,579
    Thank Post
    211
    Thanked 220 Times in 176 Posts
    Rep Power
    63

    Re: Shut down 4 servers using one UPS on power fail

    Ric how much do you want for your shareups? its just what we need

    Butuz

  11. #11

    Join Date
    Jul 2005
    Location
    Blackburn, Lancashire
    Posts
    123
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Shut down 4 servers using one UPS on power fail

    Why don't you use a batch file that uses the shutdown command for each server. Therefore not having to install the memory eating program that apc supply on all servers and just one.

    SHUTDOWN /s /m \\servername /t 120 /d U:6:12 /c "There has been a power failure server now shutting down"

    Dan Turner

  12. #12
    Joedetic's Avatar
    Join Date
    Jan 2006
    Location
    Walsall
    Posts
    1,316
    Thank Post
    6
    Thanked 13 Times in 13 Posts
    Rep Power
    22

    Re: Shut down 4 servers using one UPS on power fail

    Mixed O/S environment.

    That batch file wouldnt run on a linux machine and wouldnt shut down the linux machine. You'd need to run something involving an SSH login for the linux server.

    Yes it could be done...but why when you could just run apcupsd, which is a daemon NOT produced by APC themselves and doesnt require tonnes of system memory afaik.

  13. #13

    Join Date
    Jul 2005
    Location
    Blackburn, Lancashire
    Posts
    123
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Shut down 4 servers using one UPS on power fail

    This can be done by using

    "C:\Program Files\PuTTY\plink.exe" sessionname /sbin/shutdown -h now

    keep it simple.

    Dan

  14. #14

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Shut down 4 servers using one UPS on power fail

    Quote Originally Posted by Butuz
    Ric how much do you want for your shareups? its just what we need
    Offers on a postcard Bear in mind that I would need to post it (guessing about £5-£10 for that it isn't too heavy but is a 1u rack component so is relatively bulky).

    I also have a brand new APC SmartUPS Interface Expander (2 serial ports). This is boxed and everything! I'm open to offers on this too.

    If anybody wants these and will be at the meeting mentioned at http://edugeek.net/index.php?name=Fo...wtopic&t=10264 then obviously postage is a mute point

    At any rate PM me

SHARE:
+ Post New Thread

Similar Threads

  1. PC power Button (shut machine down)
    By edie209 in forum Windows
    Replies: 11
    Last Post: 19th June 2006, 09:47 AM
  2. Words fail me #2
    By KarlGoddard in forum General Chat
    Replies: 14
    Last Post: 1st March 2006, 10:51 PM
  3. Words fail me
    By Norphy in forum General Chat
    Replies: 7
    Last Post: 1st March 2006, 08:14 PM
  4. Replies: 18
    Last Post: 14th October 2005, 09:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •