Operating System - Linux
1748006 Members
4666 Online
108757 Solutions
New Discussion юеВ

Re: Compaq R3000 UPS & Linux

 
John Rowan_2
Regular Advisor

Compaq R3000 UPS & Linux

We recently purchased a 42U cabinet with a Compaq R3000 UPS installed at it's bottom. The batteries were dead so we replaced all 16 of them. After the batteries were replaced the unit would power up. We ordered the recommended cable to interface the Proliant DL380 with the UPS. We are running CentOS 5 Linux and the apcupsd package. The config file for apcupsd is set for a simple cable connected via /dev/ttyS0. When we launch apcupsd /var/log/messages records a single line:
Feb 26 13:02:07 mako apcupsd[10033]: apcupsd 3.14.2 (15 September 2007) redhat startup succeeded

but running apcaccess returns the report below.
The UPS has been plugged in for eight days and the only load is the DL380. Why would the software be reporting LOWBATT?
Can someone post a link to the protocol and speed settings to interface with the UPS via the Linux machine's serial port?


APC : 001,019,0505
DATE : Tue Feb 26 13:02:14 EST 2008
HOSTNAME : mako
RELEASE : 3.14.2
VERSION : 3.14.2 (15 September 2007) redhat
UPSNAME : Compaq
CABLE : Custom Cable Simple
MODEL : DUMB UPS Driver
UPSMODE : Stand Alone
STARTTIME: Tue Feb 26 13:02:07 EST 2008
STATUS : ONLINE LOWBATT
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
STATFLAG : 0x07000048 Status Flag
END APC : Tue Feb 26 13:02:14 EST 2008

6 REPLIES 6
skt_skt
Honored Contributor

Re: Compaq R3000 UPS & Linux

We use powerChut s/w (pcns221lnx.bin
is the installable binary)
Steven E. Protter
Exalted Contributor

Re: Compaq R3000 UPS & Linux

Shalom,

Apc provides binaries for this.

http://www.apc.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Rowan_2
Regular Advisor

Re: Compaq R3000 UPS & Linux

Ok. I went to APC's site, downloaded the .bin installer but it errored out with Java problems. I installed Java Runtime, modified my path, logged in again and verified it was in the path but the installed failed with the same error. I then opted to download and install the .RPM version. That said it installed but did not give me any info as to what man page to view or commands do run to interact with the UPS. I looked at APC's site and couldn't find anything there either. Can someone tell me what the man page is so I can get this thing going?
skt_skt
Honored Contributor

Re: Compaq R3000 UPS & Linux

here is what i see as instruction
Java 1.4 have to be installed. To verify:

$ rpm -q j2re
j2re-1.4.2_08-fcs
Install directory is /opt/pcns221 and it allocate 4.7 MiB after installation.

Installer (as root) requires X so set DISPLAY and ensure it is working.

Installer uses java so insert java bin directory into PATH temporarily:

# PATH=/usr/java/j2re1.4.2_08/bin:$PATH
John Rowan_2
Regular Advisor

Re: Compaq R3000 UPS & Linux

The machine is running CentOS 5. Java had been installed but when the powerchute software failed to installed I downloaded and installed Java again from Sun's web site. Typing rpm -q j2re fails. But if you type java --version it displays. The PATH variable has it. The jinstall.log and errors.log show more detail. By the way I also downloaded and installed the RPM based package of the powerchute software. It installed startups in the /etc/rc.d/rc5.d startup but when I try to run .S99PBEAgent it just returns to the system prompt. Running PBEAgent with the status parameter says it is stopped.

which java
/usr/bin/java
[root@mako rowan]# echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/j2re1.4.2_16/bin:/root/bin
[root@mako rowan]# cat jinstall.log
Wed Feb 27 17:40:32 2008 Valid versions of java: 1.4.2_11 through
Wed Feb 27 17:40:32 2008 Search for JVM: no
Wed Feb 27 17:40:32 2008 attempting to install jvm 1.4.2_11
Wed Feb 27 17:40:32 2008 predefined install JVM dir /bin/java/jre/1.4.2_11/
Wed Feb 27 17:40:32 2008 creating predefined jvm dir /bin/java/jre/1.4.2_11/
Wed Feb 27 17:40:32 2008 Testing jvm version: /bin/java/jre/1.4.2_11//bin/java
Wed Feb 27 17:40:32 2008 redirecting stderr
Wed Feb 27 17:40:32 2008 result after issuing version command: 0
Wed Feb 27 17:40:32 2008 resetting stderr
Wed Feb 27 17:40:32 2008 found jvm version: 1.4.2_11
Wed Feb 27 17:40:32 2008 createJvmDirectory ok: true
Wed Feb 27 17:40:32 2008 found existing jvm directory: true
Wed Feb 27 17:40:32 2008 about to configure jvm 1.4.2_11
Wed Feb 27 17:40:32 2008 configureJvm ok: true
Wed Feb 27 17:40:32 2008 installCompressedJvm ok: true
Wed Feb 27 17:40:32 2008 Testing jvm version: /bin/java/jre/1.4.2_11//bin/java
Wed Feb 27 17:40:32 2008 redirecting stderr
Wed Feb 27 17:40:33 2008 result after issuing version command: 0
Wed Feb 27 17:40:33 2008 resetting stderr
Wed Feb 27 17:40:33 2008 found jvm version: 1.4.2_11
Wed Feb 27 17:40:33 2008 installJvm ok: true
Wed Feb 27 17:40:33 2008 java installer C++ command: "/bin/java/jre/1.4.2_11//bin/java" -Djava.util.prefs.userRoot\=/bin/java/jre/1.4.2_11 -Djava.util.prefs.systemRoot\=/bin/java/jre/1.4.2_11 -DProduct.Nodes\=5 -DProduct.Type\='FREE' -DProduct.NodeLevel\=5 -DProduct.FeatureLevel\=BASIC -cp .:./install.jar:./m11.jar:./comm.jar:./ds.jar:./pcbe_ds.jar:./RXTXComm.jar\:./ModifyShutdownLinux.jar load
Wed Feb 27 17:40:33 2008 java wizard execed with no reported errors
Wed Feb 27 17:40:33 2008 Java wizard not started properly
See errors.log for other possible causes.out of disk space?
Wed Feb 27 17:40:33 2008 Other possible causes for errors:
* Read/write access rights to the 'temp' and installation directories?
* OS need to be patched to run Java apps?
* Anti-virus software installed that won't permit unknonwn executable or JAR files to run?
Wed Feb 27 17:40:33 2008 install ok: false
Wed Feb 27 17:40:33 2008 jvmLocation
Wed Feb 27 17:40:33 2008 jvmInstalledInTemp false
Wed Feb 27 17:40:33 2008 configureReg: false
Wed Feb 27 17:40:33 2008 copying log files to /home/rowan
[root@mako rowan]# cat errors.log
Wed Feb 27 17:40:33 2008 Java wizard not started properly
See errors.log for other possible causes.out of disk space?
Wed Feb 27 17:40:33 2008 Other possible causes for errors:
* Read/write access rights to the 'temp' and installation directories?
* OS need to be patched to run Java apps?
* Anti-virus software installed that won't permit unknonwn executable or JAR files to run?
[root@mako rowan]#
skt_skt
Honored Contributor

Re: Compaq R3000 UPS & Linux

those instruction was specific to RHEL AS 3.