Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Apr 2004 23:02:22 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Me <d3javu1978@yahoo.com>, Gregory Edigarov <greg@profi.kharkov.ua>
Cc:        questions@freebsd.org
Subject:   Re: APC UPS with USB ? Anybody?
Message-ID:  <6.0.3.0.0.20040406225227.10c36bf8@209.112.4.2>
In-Reply-To: <20040407024856.87637.qmail@web42001.mail.yahoo.com>
References:  <9tg670l8f5n8u0g4nitg4cf25d7cigacu7@4ax.com> <20040407024856.87637.qmail@web42001.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:48 PM 06/04/2004, Me wrote:
>That would be sufficient to create a script to monitor
>the power state, maybe have the script check the
>status again in 10 minutes and shutdown the PC if
>necessary.
>It can be done right?


The time estimate is very inaccurate on the ES and RS units that I have 
used.   You would have better luck shutting down based on battery 
strength.  You can glean this info from the proc title, or process it as it 
gets sent to local1 via syslog.  But yes, it can be done

eg here is a sample power failure as it gets recorded in local1

Feb 16 13:04:33 noborders apc-upsd: Battery strength Level  49% ETTL   1 min
Feb 16 13:04:34 noborders apc-upsd: Battery strength Level  48% ETTL   1 min
Feb 16 13:04:34 noborders apc-upsd: Battery strength Level  47% ETTL   1 min
Feb 16 13:04:35 noborders apc-upsd: Battery strength Level  46% ETTL   1 min
Feb 16 13:04:57 noborders last message repeated 6 times
Feb 16 13:04:57 noborders apc-upsd: Battery strength Level  45% ETTL   1 min
Feb 16 13:05:19 noborders last message repeated 7 times
Feb 16 13:05:20 noborders apc-upsd: Battery strength Level  44% ETTL   1 min
Feb 16 13:05:24 noborders apc-upsd: Battery strength Level  43% ETTL   1 min
Feb 16 13:05:24 noborders apc-upsd: Battery strength Level  43% ETTL   1 min
Feb 16 13:05:24 noborders apc-upsd: Battery strength Level  42% ETTL   1 min
Feb 16 13:05:25 noborders apc-upsd: Battery strength Level  41% ETTL   1 min
Feb 16 13:05:49 noborders last message repeated 6 times
Feb 16 13:05:53 noborders apc-upsd: Battery strength Level  40% ETTL   1 min
Feb 16 13:06:05 noborders last message repeated 8 times
Feb 16 13:06:05 noborders apc-upsd: Battery strength Level  39% ETTL   1 min
Feb 16 13:06:06 noborders apc-upsd: Battery strength Level  38% ETTL   1 min
Feb 16 13:06:06 noborders apc-upsd: Battery strength Level  37% ETTL   1 min
Feb 16 13:06:11 noborders apc-upsd: Battery strength Level  37% ETTL   1 min
Feb 16 13:06:14 noborders apc-upsd: Battery strength Level  36% ETTL   1 min
Feb 16 13:06:41 noborders last message repeated 10 times
Feb 16 13:06:45 noborders last message repeated 2 times
Feb 16 13:06:45 noborders apc-upsd: Battery strength Level  35% ETTL   1 min
Feb 16 13:06:46 noborders apc-upsd: Battery strength Level  34% ETTL   1 min
Feb 16 13:06:46 noborders apc-upsd: Battery strength Level  33% ETTL   1 min
Feb 16 13:06:47 noborders apc-upsd: Battery strength Level  32% ETTL   1 min
Feb 16 13:07:08 noborders last message repeated 6 times
Feb 16 13:07:08 noborders apc-upsd: Battery strength Level  31% ETTL   1 min
Feb 16 13:07:19 noborders last message repeated 3 times
Feb 16 13:07:20 noborders apc-upsd: Battery strength Level  30% ETTL   1 min
Feb 16 13:07:20 noborders apc-upsd: Battery strength Level  30% ETTL   1 min
Feb 16 13:07:20 noborders apc-upsd: Battery strength Level  29% ETTL   1 min
Feb 16 13:07:21 noborders apc-upsd: Battery strength Level  28% ETTL   1 min
Feb 16 13:07:22 noborders last message repeated 2 times 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.3.0.0.20040406225227.10c36bf8>