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


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to