From owner-freebsd-questions Mon Feb 2 15:42:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09053 for questions-outgoing; Mon, 2 Feb 1998 15:42:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from global.com (global.com [206.40.50.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08893 for ; Mon, 2 Feb 1998 15:41:57 -0800 (PST) (envelope-from gopu@global.com) Message-ID: <34D6586D.875DAAAA@global.com> Date: Mon, 02 Feb 1998 15:36:14 -0800 From: Gopakumar H Pillai Organization: Global Automation, Inc. X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: "Bruce M. Walter" , FreeBSD Questions Subject: Re: APC Back UPS monitor References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" Thanks a lot. About the first part of your reply, I found a good software which can handle SmartUPS modified lately by Dough White. It's a good one. It can execute a halt command to shut down the machine after setting the UPS shutdown delay. It didn't go into my head, why you wanted to modify the kernel to shutdown. This code can be found in ftp://gdi.uoregon.edu/pub/upsd-2.0.1.6.1.tgz. About the second part, I am really interested in knowing what exactly it does. By the brief description, I am getting ideas to use it to synchronize the shutting down of all machines in case of power failure. I was thinking of writing a s/w which would broadcast a packet in the network and a client listening to it brings down the system. But I am too naive and have to study a lot to do this. --Gopu Bruce M. Walter wrote: > > Gopakumar, > > > Basically, I am planning to look into the APC ssd code and modify it. I > > do not know any commands which could be given the UPS. If u have the > > command set could u please send it to me? Actually I never connected to > > the UPS and checked it out. > > I've been working on a daemon as which monitors 'dumb' UPS's as well. > Calin and I have both run into a problem with the placement of the actual > code that shuts down the power inverter. Right now, both of our daemons > can shutdown the system, but to insure data integrity a clean shutdown > requires a kernel patch. We're going to try to get some code committed > which makes a poweroff function part of the kernel. > > > Here is my need: > > > > I have two UPS, both APC SmartUPS 1000. I have an external network and > > an internal one. One is used on external and another internal. When the > > power goes down I want the UPS monitor to wait for some seconds and then > > notify a list of users by Paging and notify other machines to shutdown > > and notify the UPS to shutdown after some seconds (say 60) and shutdown > > itself. After the specified seconds the UPS shutsdown itself and comes > > up when the power restores and feeding power to all machines connected. > > My monitor daemon allows client daemons (and a Windoze 95/NT client) to > monitor the master daemon via a TCP port and perform functions > accordingly. The monitor daemon also calls scripts for events so paging > and mail messaging, while not built-in, can easily be integrated. > > I'm not sure where Calin's stuff stands now, but I'm hoping to release a > FreeBSD version in about a week. If you're interested, I'll send you a > copy when it's done. > > - Bruce > > ======================================================================== > || Bruce M. Walter || 107 Timber Hollow Court #335 || > || Senior Network Consultant || Chapel Hill, NC 27514 || > || Fortean Technologies, Inc. || Tel: 919-967-4766 || > || Information Technology Consultants || Fax: 919-967-4395 || > ======================================================================== > || BSD Unix -- It's not just a job, it's a way of life! || > ========================================================================