Operating System - HP-UX
1834156 Members
2508 Online
110064 Solutions
New Discussion

UPS communication problem.

 
Jeroen Bruneel
New Member

UPS communication problem.

We have a new installation with an N4000 and Powertrust UPS. Cable is OK I tested it. WHen we start the ups_mond we get foillowing errors in syslog.
Aug 14 11:06:16 host /usr/lbin/ups_mond[22940]: /usr/lbin/ups_mond: UPS Monitor daemon starting; using configuration file /etc/ups_conf
Aug 14 11:06:19 host /usr/lbin/ups_mond[22940]: /usr/lbin/ups_mond: UPS /dev/tty0p1 read failed: File exists; Uninterruptable Power Supply has not been connected correctly; loss of power would not be detectible
Aug 14 11:06:25 host /usr/lbin/ups_mond[22940]: /usr/lbin/ups_mond: UPS /dev/tty0p1 read of status failed: File exists

Does anybody have any bright ideas ?
6 REPLIES 6
U.SivaKumar_2
Honored Contributor

Re: UPS communication problem.

Hi,
Check the permission of /dev/tty0p1 should be.
# ll /dev/tty0p1
crw--w--w- 1 bin bin 193 0x000100 Jul 7 1999 /dev/tty0p1

regards,
U.SivaKumar



Innovations are made when conventions are broken
Jeroen Bruneel
New Member

Re: UPS communication problem.

Permissions are OK any other suggestions where to look ?
Sebastian Galeski_1
Trusted Contributor

Re: UPS communication problem.

Hi
are You sure that You connect your cable to tty0p1 not to tty1p1.
Check permition for /dev/null
should be:
crw-rw-rw- 1 bin bin 3 0x000002 Aug 14 12:43 /dev/null

regards Seba
U.SivaKumar_2
Honored Contributor

Re: UPS communication problem.

Hi,
This cable with PARTNO:5061-2575 should be used to connect the port and UPS.

9 pin 9 pin
male female
UPS RS232
------ ------
1 RX <-------------- 3 TX
2 TX --------------> 2 RX
9 GND --------------- 5 GND

regards,
U.SivaKumar

Innovations are made when conventions are broken
john korterman
Honored Contributor

Re: UPS communication problem.

Hi,

you could try the following thread:

http://europe.support.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000059417132


regards,

John K.
it would be nice if you always got a second chance
Zeev Schultz
Honored Contributor

Re: UPS communication problem.

I'd try to stop ups_mond,check the tty file
-recreate with insf if needed.Also check that
you doesn't have UPS Manager II (ps -ef |grep ptupsd)
Anyway,nice to check UPS if responding at all
with kermit:
------------------------------------------
Determine the UPS tty device file

If ups_mond is configured through SAM:

Check the file /etc/ups_conf for the upstty entry:

# cat /etc/ups_conf
shutdown_delay_mins:1
shutdown_timeout_mins:5
upstty:/dev/tty0p1

Stop the current ups daemon

If ups_mond is configured through SAM:

Comment out the ups_mond entry in /etc/inittab.
Type init q.
Check if ups_mond is still running, and kill the daemon if necessary:

# ps -ef | grep ups_mond


Note: It is important to stop the ups daemon first. Otherwise the kermit
test can result in a system shutdown.

Note : Either ups_mond or UPS Manager II can be configured, never both
at the same time. These are two different types of software serving
the same purpose - monitoring the UPS. The daemons started by each
software conflict with one another.

Run kermit

Replace the example device file /dev/tty0p1 with your UPS device file if
different.

# kermit
Executing /usr/share/lib/kermit/ckermit.ini for UNIX...
Good Afternoon!
C-Kermit 6.0.192, 6 Sep 96, for HP-UX 10.00
Copyright (C) 1985, 1996,
Trustees of Columbia University in the City of New York.
Default file-transfer mode is TEXT
Type ? or HELP for help.
[/] C-Kermit>set line /dev/tty0p1
[/] C-Kermit>set speed 1200
/dev/tty2p0, 1200 bps
[/] C-Kermit>set flow xon/xoff
[/] C-Kermit>connect
Connecting to /dev/tty0p1, speed 1200.
The escape character is Ctrl-\ (ASCII 28, FS)
Type the escape character followed by C to get back,
or followed by ? to see other options.

-> press Enter

??

Note: The question marks indicate that the UPS is reponding. If you do
not see the question marks, try logging out of kermit and
connecting at a different baud rate (for example 2400, 9600).

To query the UPS enter any of the following characters:

B ---> Battery voltage (VDC)
C ---> UPS internal temperature (degree Celsius)
F ---> UPS operating frequency (50 or 60 Hz)
L ---> Input AC voltage (VAC)
O ---> Output AC voltage (VAC)
P ---> Load Power (% of UPS rated load)
R ---> Reserve power (runtime remaining with existing load in minutes)
U ---> UPS battery mode (puts UPS into battery mode for a few
seconds and calculates current runtime remaining)


Note: Not all values may be supported by the UPS hardware.

Exit out of kermit

Type CTRL-\ followed by c.

(Back at )
[/] C-Kermit>quit

Restart the ups daemon

If ups_mond is configured through SAM:

Uncomment the ups entry in /etc/inittab.
Type init q.
Check if ups_mond was restarted:

# ps -ef | grep ups_mond

-------------------------------------------
good luck
So computers don't think yet. At least not chess computers. - Seymour Cray