[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

UPS setup problems (apcuspd and genpower)



I recently purchased an APC Back-UPS Pro 650, but have been unable to
get the UPS the daemons to interact with my system.

The system is a Dell Workstation 410
Linux hilbert 2.2.13 #1 SMP Fri Mar 17 13:57:34 EST 2000 i686 unknown
with a current potato configuration via a fresh potato install (gotta
love the new ext2 fs and MD5 passwords!)

The apcupsd is communicating well with the APC unit: 
/etc/apcuspd.status shows:
APC      : Mar 22 09:06:42
CABLE    : APC Cable 940-0095A
UPSMODEL : Back-UPS Pro 650
UPSMODE  : Stand Alone
UPSNAME  : UPS_IDEN
ULINE    : 119.5 Volts
MLINE    : 119.5 Volts
NLINE    : 118.8 Volts
FLINE    : 60.0 Hz
VOUTP    : 119.5 Volts
LOUTP    : 049.4 Load Capacity
BOUTP    : 13.8 Volts
BCHAR    : 100.0 Batt. Charge
TIME     : 17.0 Minutes
SENSE    : HIGH
WAKEUP   : 000 Cycles
SLEEP    : 020 Cycles
LOTRANS  : 106.0 Volts
HITRANS  : 127.0 Volts
CHARGE   : 000.0 Percent
BFAIL    : 0x08 Status Flag
ALARM    : Always
LASTEVNT : POWER FAILURE
LOWBATT  : 02 Minutes

The apcupsd.conf is appended at the end. 

Despite having put an explicit TIMEOUT 300 in the configuration file,
the machine stays up and the battery winds down.  When the AC plug is
pulled to test, the BFAIL tag changes to 0x10, the LASTEVENT is updated,
the voltages go to zero and the battery charge diminishes.

At *no* time are any messages printed to the terminal windows (to
indicate power failure, warning logouts imminent, power resumed, etc). 
So I am rather confused.  apcupsd collects valid data but
/usr/sbin/powersc doesn't act on it.

I have also tried genpower (/sbin/genpowerd /dev/ttyS0 apc-pnp) (which
is the correct type for the APC Cable 940-0095A.  The /etc/upsstatus
*always* says OK even if the plug is pulled.

Any suggestions would be most welcome.

Thanks

Tom

## apcupsd.conf v1.0 ##
#
# "apcupsd" POSIX config file
# Updated for Debian/GNU Linux by Leon Breedt (ljb@debian.org)

# CONTROL <string>
CONTROL /usr/sbin/powersc

# UPSCABLE [ simple | smart |
#            940-00(20B,23A,24B,24C,24G,95A,95C) |
#            940-15(24C) |
#            ether ]
#
UPSCABLE 940-0095A

# UPSTYPE [ backups | sharebasic | netups |
#           backupspro | smartvsups |
#           newbackupspro | backupspropnp |
#           smartups | matrixups | sharesmart ]
#
UPSTYPE backupspropnp

# UPSCLASS [ standalone | shareslave | sharemaster | netslave |
netmaster ]
UPSCLASS standalone

# UPSMODE [ disable | share | net | sharenet ]
UPSMODE disable

#DEVICE <string> /dev/<serial port>
DEVICE /dev/ttyS0

#LOCKFILE <path to lockfile>
LOCKFILE /var/lock

#ACCESS <string> [ true | false ] Enable Access Support
ACCESS true

# ANNOY <int> <30> <0> disables
ANNOY 30

# DELAY <int> <60> <0> disables
DELAY 60

# NOLOGON <string> [ disable | timeout | percent | minutes | always ]
NOLOGON timeout

# PROCFS <int> <120> <0> disables <update rate procfs-type of current
statu
s>
PROCFS 30

# LOGGING <int> <500> <0> disables <rate update log file of current
status>
LOGGING 300

# TIMEOUT <time is seconds to run on UPS, powerfails>
TIMEOUT 300


# BATTERYLEVEL <precent of battery charge for shutdown> 10
BATTERYLEVEL 10

# MINUTES <time in minutes of remainning battery charge before shutdown>
5
MINUTES 5

# SENSITIVITY <char> H,M,L default H
SENSITIVITY H

# WAKEUP <int> 0,60,180,300 Cycles default 0
WAKEUP 60

# SLEEP <int> 20,180,300,600 Cycles default 20
SLEEP 20

# LOTRANSFER <int> 0,1,2,3 default 2
LOTRANSFER 2

# HITRANSFER <int> 0,1,2,3 default 2
HITRANSFER 3

# RETURNCHARGE <int> 0,1,2,3 default 3
RETURNCHARGE 1

# BEEPSTATE <char> 0,T,L,N default 0
BEEPSTATE L

# SELFTEST <string> 336,168,ON,OFF default 336
SELFTEST 336
#
# UPSNAME <string>
UPSNAME UPS_IDEN

# REPLACE <string> date format mm/dd/yy
#REPLACE 12/13/93

# BATTCMD <string>
#BATTCMD

# TIMECMD <string>
#TIMECMD 

# LOADCMD <string>
#LOADCMD 

# LIMITCMD <string>
#LIMITCMD

# PWRCMD <string>
#PWRCMD

# RETCMD <string>
#RETCMD

# REMOTECMD <string>
#REMOTECMD

# NETTIME <int>
#NETTIME 100

# NETPORT <int>
#NETPORT 6666

# MASTER <string>
#MASTER

# SLAVE <string>
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE
#SLAVE

# USERMAGIC <string>
#USERMAGIC

# HTTPACCESS [ true | false ]   enable web-interface - defaults to false
#HTTPACCESS true

# HTTPPORT <port>  port to use for interface - defaults to 1999
#HTTPPORT 1999





-- 
Thomas R. Shemanske                
(Mailing Address)                  (Office/Internet Information)
Department of Mathematics          203 Choate House
6188 Bradley Hall                  thomas.r.shemanske@dartmouth.edu
Dartmouth College                  http://www.math.dartmouth.edu/~trs/
Hanover, NH 03755-3551             (603) 646 - 3179 
                                        
Directions:  http://www.math.dartmouth.edu/~trs/choatehouse.html
Office hours: 
http://www.math.dartmouth.edu/~trs/frontmatter/office.html

Spring Term Office Hours:  By appointment


Reply to: