From owner-freebsd-questions Sat Jan 3 17:53:17 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA19308 for questions-outgoing; Sat, 3 Jan 1998 17:53:17 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from gdi.uoregon.edu (cisco-ts17-line12.uoregon.edu [128.223.150.229]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA19303 for ; Sat, 3 Jan 1998 17:53:13 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id RAA28023; Sat, 3 Jan 1998 17:52:58 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Sat, 3 Jan 1998 17:52:57 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Norman C Rice cc: freebsd-questions@FreeBSD.ORG Subject: Re: UPSD toggle wraparound and negative response In-Reply-To: <19980103115603.07099@emu.sourcee.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 3 Jan 1998, Norman C Rice wrote: > I am running the experimental upsd port on several FreeBSD 2.2.5-STABLE > systems with APC Smart-UPS 1000s. Every 10 minutes /var/log/messages > receives entries similar to > > Jan 3 11:17:38 emu upsd[231]: apc_tune: toggle wraparound > Jan 3 11:17:39 emu upsd[231]: apc_tune: toggle wraparound > Jan 3 11:17:39 emu upsd[231]: apc_tune: negative response: NO > Jan 3 11:17:40 emu upsd[231]: apc_tune: toggle wraparound > Warning: the default upsd is wired for use on 240 volt UPS units. The voltage-dependent values will *NOT* work for 120 volt units. These lines are probably causing your problem: > tune "high-transfer-point" 264 > tune "low-transfer-point" 196 > tune "nominal-voltage" 220 You will need my modified version of upsd that is set up with values for 120 volt operation. That or remove these lines and use the built-in defaults for the UPS (or toggle the rear switches to your taste). > My experiments with removal of line power indicate that the shutdown > process and line restoration work properly. For the time being, I > have commented out these messages in apc.c. The negative response may be coming from a command like so: poll "last-test" This checks the results of the last self-test of the UPS. If you aren't running self tests, it'll report NO until one is run either manually or automatically as programmed into the UPS. I thought the line was annoying to and just didn't have upsd check that (or else I removed the printf :-)) Beginning Monday you can fetch this from: ftp://gdi.uoregon.edu/pub/upsd-2.0.1.6.1.tgz See the README for quick info and examples/upsd.conf.120v for starters. If you want to get fancy with tuning the transfer points and such, you'll have to fish the values out of apc_static.c. I actually have a manpage in there, but it isn't installed by default. Hope this helps. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major