PowerChute a freebsd

Zbyněk Burget zburget at burgnet.cz
Fri Jul 10 08:05:18 CEST 2009


Jaroslav Votruba napsal(a):
> tak jsem to prechvalil
> chodilo to do te doby dokud jsem nezkusil test
> 
> apctest

ten apctest ale muzes pustit pouze v pripade, kdy nebezi apcupsd - 
protoze komunikacni kanal s UPS neni volny, nepodari se ti apctest spustit
> 
> 2009-07-10 07:28:50 apctest 3.14.5 (10 January 2009) freebsd
> Checking configuration ...
> Attached to driver: usb
> sharenet.type = DISABLE
> cable.type = USB_CABLE
> 
> You are using a USB cable type, so I'm entering USB test mode
> mode.type = USB_UPS
> Setting up the port ...
> apctest FATAL ERROR in bsd-usb.c at line 735
> Cannot find UPS device --
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...a hodi ti to presne tuhletu chybovou hlasku...


> 
> od te doby demona nenahodim
> 
> tail /var/log/messages
> 
> Jul 10 07:30:21 backup apcupsd[1994]: Valid lock file for pid=1233, but 
> not ours pid=1994
> Jul 10 07:30:21 backup apcupsd[1995]: apcupsd FATAL ERROR in bsd-usb.c 
> at line 735 Cannot find UPS device -- For a link to detailed USB trouble 
> shooting information, please see <http://www.apcupsd.com/support.html>.
> Jul 10 07:30:21 backup apcupsd[1995]: Valid lock file for pid=1233, but 
> not ours pid=1995
> Jul 10 07:30:21 backup apcupsd[1995]: apcupsd error shutdown completed

a nenahodis ho bud proto, ze (A) stale bezi a nebo (B) ti zustal po 
padnutem apcupsd viset /var/run/apcupsd.pid

> 
> apcaccess status
> APC      : 001,044,1083
> DATE     : Fri Jul 10 07:31:03 CEST 2009
> HOSTNAME : backup.keytec
> RELEASE  : 3.14.5
> VERSION  : 3.14.5 (10 January 2009) freebsd
> UPSNAME  : backup.keytec
> CABLE    : USB Cable
> MODEL    : Back-UPS CS 650
> UPSMODE  : Stand Alone
> STARTTIME: Fri Jul 10 06:57:12 CEST 2009
> STATUS   : ONLINE
> LINEV    : 232.0 Volts
> LOADPCT  :  28.0 Percent Load Capacity
> BCHARGE  : 100.0 Percent
> TIMELEFT :  19.9 Minutes
> MBATTCHG : 5 Percent
> MINTIMEL : 3 Minutes
> MAXTIME  : 0 Seconds
> OUTPUTV  : 230.0 Volts
> SENSE    : Medium
> DWAKE    : 000 Seconds
> DSHUTD   : 000 Seconds
> LOTRANS  : 180.0 Volts
> HITRANS  : 266.0 Volts
> RETPCT   : 000.0 Percent
> ITEMP    : 29.2 C Internal
> ALARMDEL : Always
> BATTV    : 13.6 Volts
> LINEFREQ : 50.0 Hz
> LASTXFER : Low line voltage
> NUMXFERS : 0
> TONBATT  : 0 seconds
> CUMONBATT: 0 seconds
> XOFFBATT : N/A
> SELFTEST : NO
> STATFLAG : 0x07000008 Status Flag
> SERIALNO : 3B0850X21053
> BATTDATE : 2008-12-10
> NOMOUTV  : 230 Volts
> NOMINV   : 230 Volts
> NOMBATTV :  12.0 Volts
> NOMPOWER : 400 Watts
> FIRMWARE : 817.v4.I USB FW:v4
> APCMODEL : Back-UPS CS 650
> END APC  : Fri Jul 10 07:31:15 CEST 2009

(A) je spravne - kde myslis, ze by apcaccess vezal tyhle informace, 
pokud by nebezel apcupsd?

Zbynek




More information about the Users-l mailing list