In message <[EMAIL PROTECTED]>, Phusi
on writes:
>I have a few Soekris 4801's running OpenBSD 4.3 and am wondering about
>how to use them with a UPS. If I have both of the power cables hooked
>up to a APC Smart-UPS is there a way I can monitor power so that the
>Soekris's will shutdown gracefully when the power on the UPS hits a
>designated limit? I assume SNMP is involved in this somehow, but need
>advice. Thanks.

Most UPS have a relay line that signals lost of input power, check your
UPS documentation.

If you do not use the internal serial port, you can connect the relay
so the DCD pin will go high when input power is lost.

To your OpenBSD that will look like the modem received an incoming call
and carrier-blocking opens on the tty device will suceed, so you may
be able to get away with simply:

        /sbin/shutdown $whatever_params_you_want < /dev/ttyd1

(for ttyd1, substitute whatever OpenBSD has)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to