HPE 9000 and HPE e3000 Servers
1748223 Members
4623 Online
108759 Solutions
New Discussion юеВ

Re: RP5400 server - UPS R3000XR

 
SOLVED
Go to solution
Kurt Beyers.
Honored Contributor

Re: RP5400 server - UPS R3000XR

A follow up of the problem.

The firmware revision of the GSP is B.02.20

The output of an ioscan -fnC tty is:

Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tty 1 0/0/4/0 func0 CLAIMED INTERFACE PCI BaseSystem (103c128d)
tty 0 0/0/4/1 asio0 CLAIMED INTERFACE PCI Serial (103c1048)
/dev/GSPdiag1 /dev/tty0p0 /dev/tty0p4
/dev/diag/mux0 /dev/tty0p2
/dev/mux0 /dev/tty0p3



I ended up by removing the LANSafe software and configured the UPS from SAM using the /dev/tty0p3 device file. I've changed the entry in /etc/inittab to respawn the ups_mond daemon.

Now I end up with following message on the console:

Aug 9 10:19:08 server /usr/lbin/ups_mond[1554]: /usr/lbin/ups_mond: UPS Moni
tor daemon starting; using configuration file /etc/ups_conf
Aug 9 10:19:11 server /usr/lbin/ups_mond[1554]: /usr/lbin/ups_mond: UPS /dev/
tty0p3 read failed: File exists; Uninterruptable Power Supply has not been conne
cted correctly; loss of power would not be detectible
Aug 9 10:19:17 server /usr/lbin/ups_mond[1554]: /usr/lbin/ups_mond: UPS /dev/
tty0p3 read of status failed: File exists

The cable between the UPS and the server has the part number 201092-002. I've unscrewed it and tightened it agian, but the problem remains. I don't see any bended pins.

Is there still a misconfiguration somewhere or is the cable itself defect?

best regards,
Kurt



Kurt Beyers.
Honored Contributor

Re: RP5400 server - UPS R3000XR

Some extra information.

We still had a spare serial cable from the sale UPS connected to a Windows server and used this one as well.

The error messages remain the same however, but it excludes 'a defect' in the cable.

When you look in SAM at the details of the UPS port, it mentions a baud rate of 1200. In the LANSafe manual, a baud rate of 2400 is mentioned. So if the UPS speeks faster then the port can listen, you get a communication failure.

How do you change the baud rate of the /dev/tty0p3 port? I've found some threads about 'kermit' to do this, but didn't find a thread that discussed it all the way. Any howto's or good links here fore? Assuming that the baud rate difference is causing the issue. And that 'ups_mond' can control this UPS.

Many thanks in advance,

Kurt
Stefan Stechemesser
Honored Contributor
Solution

Re: RP5400 server - UPS R3000XR

Hi Kurt,

the ups_mond does not support this type of UPS. I would strongly recomend to disable it.
You must use the LanSafeIII software and it should work with this type B GSP.

Regarding your questions with the baud rate: the baud rate is normaly set by software. You can change the default speed with the stty command, but this may be overwritten again by the next software that is using the port.
For details see: "man stty" and much more detailed: "man modem".

Example (on a L3000):
# stty -a < /dev/tty0p3
speed 300 baud; line = 0;
rows = 0; columns = 0
min = 4; time = 0;
intr = DEL; quit = ^\; erase = #; kill = @
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -iuclc
-ixon -ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
-isig -icanon -iexten -xcase -echo -echoe -echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
-opost -olcuc -onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop

best regards

Stefan
Kurt Beyers.
Honored Contributor

Re: RP5400 server - UPS R3000XR

Stefan,

Ok, I've disabled the ups_mond again in the /etc/inittab and reinstalled the LanSafe software once more.

I did the same configuration as previously, but now the LANSafe software is working. I tested a power outage and the server was shutdown as configured in the LANSafe software. I don't get it why it is working now and didn't work the first time, but when things work you can stop asking yourself 'why' ;-)

Another question however. Suppose that there is a power outage during the night and the server is stopped by the UPS. After an hour, the power becomes normal again. Is it possible to start the server again automatically instead of starting it again manually in the morning? Where should it be configured or does this require extra hardware?

best regards,
Kurt
Kurt Beyers.
Honored Contributor

Re: RP5400 server - UPS R3000XR

The server comes up again when the power is restored by default. But I had to wait untill the 'time to shutdown the system' configured in the LANSafe software was over.

best regards,
Kurt