Detect APC UPS is on battery

2011-10-17 Thread mailing list
Hello Everyone, I have a machine running OBSD 4.4 which as an APC Back-UPS ES 550. Anyway to have OpenBSD detect when power is coming from Battery? (Plan on sending the system sending me an sms if so) I found the following: http://www.apcupsd.com/ My understanding is you need a usb connection to

Re: Detect APC UPS is on battery

2011-10-17 Thread Nick Bender
On Mon, Oct 17, 2011 at 9:34 AM, mailing list wrote: > Hello Everyone, > > I have a machine running OBSD 4.4 which as an APC Back-UPS ES 550. > > Anyway to have OpenBSD detect when power is coming from Battery? > (Plan on sending the system sending me an sms if so) > > I found the following: http:

Re: Detect APC UPS is on battery

2011-10-17 Thread Barry Grumbine
mailing list sprymed.com> writes: > > Hello Everyone, > > I have a machine running OBSD 4.4 which as an APC Back-UPS ES 550. > > Anyway to have OpenBSD detect when power is coming from Battery? > (Plan on sending the system sending me an sms if so) > > I found the following: http://www.apcups

Re: Detect APC UPS is on battery

2011-10-17 Thread Henning Brauer
* Barry Grumbine [2011-10-17 20:10]: > There are two ports for this: > http://openports.se/sysutils/apc-upsd > http://openports.se/sysutils/upsd my recommendation for that kind of task is still nut. not vendor-specific as an added bonus. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS W

Re: Detect APC UPS is on battery

2011-10-17 Thread Stuart Henderson
On 2011-10-17, Barry Grumbine wrote: > mailing list sprymed.com> writes: > >> >> Hello Everyone, >> >> I have a machine running OBSD 4.4 which as an APC Back-UPS ES 550. >> >> Anyway to have OpenBSD detect when power is coming from Battery? >> (Plan on sending the system sending me an sms if s

Re: Detect APC UPS is on battery

2011-10-18 Thread Benny Lofgren
On 2011-10-17 17.34, mailing list wrote: > I have a machine running OBSD 4.4 which as an APC Back-UPS ES 550. > Anyway to have OpenBSD detect when power is coming from Battery? > (Plan on sending the system sending me an sms if so) Apart from the suggestions elsewhere in the thread, in the good ol

Re: Detect APC UPS is on battery

2011-10-18 Thread Paul de Weerd
On Tue, Oct 18, 2011 at 06:36:32PM +0200, Benny Lofgren wrote: | Apart from the suggestions elsewhere in the thread, in the good old days | I used to detect power outages by simply using a 12V power adapter and | soldering together a special cable connecting the +12V to the DCD pin of | an RS 232 s

Re: Detect APC UPS is on battery

2011-10-18 Thread Gregory Edigarov
On Tue, 18 Oct 2011 21:36:11 +0200 Paul de Weerd wrote: > On Tue, Oct 18, 2011 at 06:36:32PM +0200, Benny Lofgren wrote: > | Apart from the suggestions elsewhere in the thread, in the good old > days | I used to detect power outages by simply using a 12V power > adapter and | soldering together a

Re: Detect APC UPS is on battery

2011-10-19 Thread Paul de Weerd
On Wed, Oct 19, 2011 at 09:53:25AM +0300, Gregory Edigarov wrote: | On Tue, 18 Oct 2011 21:36:11 +0200 | Paul de Weerd wrote: | | > On Tue, Oct 18, 2011 at 06:36:32PM +0200, Benny Lofgren wrote: | > | Apart from the suggestions elsewhere in the thread, in the good old | > days | I used to detect

Re: Detect APC UPS is on battery

2011-10-19 Thread Gregory Edigarov
On Wed, 19 Oct 2011 10:23:09 +0200 Paul de Weerd wrote: > On Wed, Oct 19, 2011 at 09:53:25AM +0300, Gregory Edigarov wrote: > | On Tue, 18 Oct 2011 21:36:11 +0200 > | Paul de Weerd wrote: > | > | > On Tue, Oct 18, 2011 at 06:36:32PM +0200, Benny Lofgren wrote: > | > | Apart from the suggestions

Re: Detect APC UPS is on battery

2011-10-19 Thread Benny Lofgren
On 2011-10-19 10.23, Paul de Weerd wrote: > | I think your methodology is fllawed. think of the situations when you > | have power loss, then shutdown is started and then power is back. > | or situations where you starting machine after blackout and then there > | is a blackout again... > | With go

Re: Detect APC UPS is on battery

2011-10-19 Thread Paul de Weerd
On Wed, Oct 19, 2011 at 10:57:23AM +0200, Benny Lofgren wrote: | On 2011-10-19 10.23, Paul de Weerd wrote: | > | I think your methodology is fllawed. think of the situations when you | > | have power loss, then shutdown is started and then power is back. | > | or situations where you starting machi

Re: Detect APC UPS is on battery

2011-10-19 Thread Paul de Weerd
On Wed, Oct 19, 2011 at 11:40:09AM +0300, Gregory Edigarov wrote: | well, I've just asked which device do you use for this particular | purpose. Sorry if I seem unclean. Well .. just any externally powered USB device. The only requirement is that the device disappears from the USB bus when its ex

Re: Detect APC UPS is on battery

2011-10-19 Thread Maurice Janssen
Op Wo, 19 oktober, 2011 11:41, schreef Paul de Weerd: > So .. what is the fundamental difference from a 'real' UPS that can > signal the machine itself that power is going down ? You get to do > the same steps "in case power is restored while we're going down". > The difference is that a smart UP

Re: Detect APC UPS is on battery

2011-10-19 Thread Raimo Niskanen
On Wed, Oct 19, 2011 at 12:12:02PM +0200, Maurice Janssen wrote: > Op Wo, 19 oktober, 2011 11:41, schreef Paul de Weerd: > > So .. what is the fundamental difference from a 'real' UPS that can > > signal the machine itself that power is going down ? You get to do > > the same steps "in case power

Re: Detect APC UPS is on battery

2011-10-19 Thread Benny Lofgren
On 2011-10-19 13.26, Raimo Niskanen wrote: > Also, a smart UPS can be told not to apply power to the machine > until it has reached a sufficient (settable) charge level after > the power comes back. > > If the power comes back and disappears again, which is not too uncommon > when all starting dev

Re: Detect APC UPS is on battery

2011-10-19 Thread Mehma Sarja
On 10/19/11 1:57 AM, Benny Lofgren wrote: On 2011-10-19 10.23, Paul de Weerd wrote: | I think your methodology is fllawed. think of the situations when you | have power loss, then shutdown is started and then power is back. | or situations where you starting machine after blackout and then there

Re: Detect APC UPS is on battery

2011-10-19 Thread Stuart Henderson
On 2011-10-19, Benny Lofgren wrote: > Also, I don't think the most common use case for a UPS is a 1:1 relation > between UPSes and servers. I have several servers hanging off of each of > mine, and they certainly don't (can't) all communicate with the UPS. NUT (Network UPS Tools) is good for that