Basically, all you need is a working powerd
binary, usually
found in /sbin/powerd
. This is usually part of the SysVinit
package. As far as I know, all current Linux distributions include a
recent version of SysVinit
. Very old versions didn't include
powerd
.
The only problem you might have is that your cable might not match how
powerd
is set up, in which case you'll have to either rewire your
cable, or pick up a copy of powerd.c
and modify it to work with your
cable. Or, for that matter, you can always pick up one of the
following packages, most of which allow you to configure them to match
your cable.
As mentioned, an alternative to using the powerd
that comes with the
SysVinit
package would be to use one of the UPS packages now
available. There are many packages currently available to aid in
setting up computer/ups communications. None of this was available
when I first wrote this Howto, which is why I had to write it. In
fact, there's a good chance that you might be able to use one of these
software packages, and avoid this Howto entirely!
As of 15 March 1997 or so, Sunsite's UPS directory had quite a few packages available. Other sites seem to have UPS control packages available too. Here's what I've found to date (all but two from sunsite):
A package for controlling APC Smart UPSs. Seems to basically follow the BUPS Howto (included here), but also seems to have some low battery warning support.
The .lsm
file says that it's formerly the above package,
but it actually includes the above package as a .tar.gz
file inside of this tar.gz
file! The documentation is
spotty. It seems to support APC UPSs in both smart mode and dumb
mode, but I can't be sure.
Another package for controlling APC Smart UPSs. Seems to include some sort of master/slave support (i.e. - one machine signals others to shut down when the power goes out). Seems to use the UPS in smart mode, as opposed to via modem signal line toggling.
Yet another package for APC UPSs. Seems to operate APC UPSs in Very Smart(tm) mode. For example, it includes a Java based GUI UPS monitoring tool! The above directory includes the software package precompiled in RPM package format ( ftp://cms180.cmsnet.com/pub/smupsd/smupsd-0.7-1.i386.rpm), as well as a source RPM for the package ( ftp://cms180.cmsnet.com/pub/smupsd/smupsd-0.7-1.src.rpm), and a readme for the package ( ftp://cms180.cmsnet.com/pub/smupsd/smupsd-0.7-1.README).
A general UPS handling package. Includes configurations for many UPSs - two TrippLite configurations, and three APC configurations. Includes good documentation. A best buy.
A replacement for the powerd
that comes with the SysVinit
package.
As opposed to comments included in the documentation it doesn't
seem to have been merged into the SysVinit
package as of version
2.62. Its advantages are that it can act as a server for other
powerd
s running on other machines (for when you have a network of
machines hanging off a single UPS), and it can be configured by
config file - the source code doesn't have to be edited and
recompiled.
Another replacement for powerd
. Seems to be quite comparable in
features to powerd-2.0.tar.gz.
This package is for controlling Best UPSs. It's direct from
Best's web site. Includes binaries for lots of unix
flavors,
but more importantly, it includes source code, so you can try it
out under Linux, and if it doesn't work, you can try to fix it.
The source code includes both ``basic checkups'' which controls
the UPS in dumb mode, and ``advanced checkups'' which is a little
more sophisticated - it will signal a shutdown when the UPS says
it has X minutes of power remaining instead of just shutting down
X minutes after the power goes out. The advanced checkups program
also will shut down when the UPS registers various alarms such as
High Ambient Temperature, Near Low Battery, Low AC Out, or User
Test Alarm.
A package that might very well be on sunsite by the time you read this. It's a pair of communications module which works with Best Ferrups UPSs. It operates the UPS in smart mode. It inter-operates well with powerd-2.0 - useful if you have a big Best Ferrups UPS keeping up all the machines on a network.
Note that I've only glanced at these packages. I haven't used them, except that we've just started using bestups-0.9.tar.gz in conjunction with powerd-2.0.tar.gz, where ``just started'' means we began testing last Thursday.