APCs need a custom cable,
There is two kinds of signalling:
1) Traditional, the handshake lines to PC says Power fail/good and
Battery good/poor, one handshake from PC does Shutdown. The handshake
line can be hacked with simple hardware to allow signalling even with a
UPS with no signalling as it just a on/off no data.
2) Serial data. The UPS tells a story on the TXD and listens on its RXD.
Some UPS will do either type of signalling. Type (1) is what is Built
into MS LAN Manager on OS/2 since 1989, I think and on NT since 1993.
Easy to add to any OS. The second kind (2) varies per manufacturer and
needs a suitable application.
I just have the dumb kind at home. The loud beep gives me 10 mins to get
the Gernerator going, then the UPS must be run for 40mins on Generator
even if power returns as they will at that point give seconds to 5 mins
if there is a 2nd power fail before the batteries have recharged.
So even if you do have signalling, deciding on what basis the server(s)
are restarted needs some thought.
Jeroen Massar wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>> Thomas Rooney wrote:
>>>> The UPS has a serial port on it that I imagine would send some info to the
>> server to let it know that its running on battery's and it should shut its self down,
>> sending the all important email before it does and also letting the other server on the
>> UPS know about the power failure and have it shut down also, this could be done
>> over SSH one would think.
>>>> So to cut this short where do I start?
>>>> By telling what model and make the UPS is ;)
>> As then you can figure out which program actually supports it.
> In general it boils down to a 'apt-get install nut' though which you can
> query and possibly also itself already send messages to you.
>> Of course, do remember that the network between you and the server also
> needs power to actually keep on operating, otherwise those messages
> won't reach you.
>>> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Jeroen Massar / http://unfix.org/~jeroen/>> iHUEARECADUFAkb39zwuFIAAAAAAFQAQcGthLWFkZHJlc3NAZ251cGcub3JnamVy
> -----END PGP SIGNATURE-----
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!