From owner-freebsd-questions Thu Nov 11 21:24:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from w2xo.pgh.pa.us (ipl-229-005.npt-sdsl.stargate.net [208.223.229.5]) by hub.freebsd.org (Postfix) with ESMTP id 09C3A15172 for ; Thu, 11 Nov 1999 21:24:25 -0800 (PST) (envelope-from durham@w2xo.pgh.pa.us) Received: from w2xo.pgh.pa.us (shazam.internal [192.168.5.3]) by w2xo.pgh.pa.us (8.9.2/8.9.1) with ESMTP id FAA10199; Fri, 12 Nov 1999 05:24:20 GMT (envelope-from durham@w2xo.pgh.pa.us) Message-ID: <382BA4B0.4C3F9A2@w2xo.pgh.pa.us> Date: Fri, 12 Nov 1999 00:25:04 -0500 From: Jim Durham Organization: dis- X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kent Chelius Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can I use a Deltec PRA 400 Smart Ups on your FreeBSD References: <000a01bf2c4e$1f79a400$c547a098@kent> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Kent Chelius wrote: > > Can I use a Deltec PRA 400 Smart Ups on your FreeBSD. If so Where do I > get the software for this, is it built into the system or is it a > addon. > > I would love to have this information, can you get back with me about > this.. > > I would like to have the server shut down when power goes out. > > This is for a school system in Ypsilanti, Michigan. > > To my knowledge, there is no canned software package for a Deltec UPS. If the UPS communicates through the serial port, perhaps you can write an expect script to do what you want. Expect is available in the ports or packages collections. IE; you monitor the serial port for something like "Battery Low", or whatever your UPS sends when it's going to shut down, then you do a graceful shutdown of the system. It would only take a few lines of script to do this. The idea is that you "expect" a certain string from the UPS to initiate an action, like shutting down the system. You can also "Send" strings to the UPS to interrogate it if you wish. -- Jim Durham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message