APC Smart UPS under Linux - Setup

APC Smart UPS under Linux - Setup

Post by Till Mommse » Wed, 03 Mar 1999 04:00:00



Hello,

I am trying to install  APC Smart UPS 700 on a Linux system.  I am using the
standard RS232 cable that comes with the UPS; it is connected to COM1
(/dev/ttyS0).  When I put the following lines into the inittab:

# what to do when power fails/returns
  pf::powerwait:/sbin/init.d/powerfail    start
  pn::powerfailnow:/sbin/init.d/powerfail now
  pn::powerfail:/sbin/init.d/powerfail now
  po::powerokwait:/sbin/init.d/powerfail  stop

I get a message during boot-up "Powerstatus bad", indicating to my
understanding that the UPS isnt recognized.

I also tried the package ARGOUPS which tells you to put the following lines
into inittab:

nw:234:respawn:/sbin/nwrescued -local /dev/ttyS0
sh:234:powerfail:/sbin/shutdown -h -t 60 now THE POWER IS FAILING

However, when I am doing this,  I get the following message during bootup:

starting upsd version 1.9 SN xxxxxx
Unable to open port /dev/ttyS0
UPS daemon started on port /dev/ttyS0

then, after bootup complete, I get several of the following messages:

intit: Id "nw" respawning to fast: disabled for 5 min....

When I try

Quote:>setserial /dev/ttyS0

I get a message
/dev/ttyS0 UART:16550A , Port: 0x03f8, IRQ: 4

Who can help?

Thank you very much,

Cheers, Till

 
 
 

APC Smart UPS under Linux - Setup

Post by Maurice Jansse » Mon, 08 Mar 1999 04:00:00


: Hello,

: I am trying to install  APC Smart UPS 700 on a Linux system.  I am using the
: standard RS232 cable that comes with the UPS; it is connected to COM1
: (/dev/ttyS0).  When I put the following lines into the inittab:
<snip>

I'm using apcupsd with an APC SmartUPS. Works great.
(sorry, don't have a URL, something with vanderbilt in it).

HTH, Maurice
--
Maurice Janssen       |    The best way to accelerate
                      |    a computer running Windows


 
 
 

APC Smart UPS under Linux - Setup

Post by Chris Mahmoo » Mon, 08 Mar 1999 04:00:00


have a look at the powerd documentation, it's very helpful.
-ckm