Operating System - HP-UX
1833056 Members
2716 Online
110049 Solutions
New Discussion

configuring ups and tty problem

 
SOLVED
Go to solution
mohammed arafat_2
Frequent Advisor

configuring ups and tty problem

Hi All ...

i'm facing a problem on configuring ups to my rp5400

let me brief
i have a ups powerware 9210 and lansafe managment software
i've defined ups serial tty0p1
and when installing the software it asked for the port and selcted the defined one
when i lunched the tool , communication faliur with ups msg occaurd ( cool for now )
i've removed the port and ups demon ,checked with ups_conf
and same problem
when i reconfigured the ups port it gave tty0p2 rather than tty0p1 ,
i have 4 port asio0 it was labled as tty0p0, p1,p2,p3 after i created ups ttyop2 it gave me
tty0p0,0p2,0p3,0p4 , checked with /dev no tty0p1 device are found , when i force the ups port to port ttyop1 it says it is in use
can any one tell me where did tty0p1 go and y it was replaced by tty0p4

part 2

when i could not retrive ttyop1 and configured tty0p2 insted to manage the ups , it did not communicate !!!
the cable is working and it has been replaced with a new tested one , the cable is connected to serial named UPS
i made a KERMIT test to check the connectivty and communication with tty0p2 with different speed ( ups is 9600) and did not work
HELP ME PLZ , really i'm lost sorrt for taking too much reading this problem
Arafat
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: configuring ups and tty problem

You might need to re-create the ttyp0p1

seem rmsf insf -e

Here are my working configurations.

from /etc/inittab

ups::respawn:rtprio 0 /usr/lbin/ups_mond -f /etc/ups_conf

[2698#] more /etc/ups_conf
# @(#)B.11.11_LR
shutdown_delay_mins:1
shutdown_timeout_mins:5
upstty:/dev/tty0p1 # Port 1 (second) on terminal mux 0 for UPS rs-232


I'm getting a sense of deja vu here.

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
Darren Prior
Honored Contributor

Re: configuring ups and tty problem

Hi,

If you're using something other than ups_mond to monitor the ups you need to ensure that you remove the ups line from inittab. Check using fuser that nothing else is using the device file.

regards,

Darren.
Calm down. It's only ones and zeros...
mohammed arafat_2
Frequent Advisor

Re: configuring ups and tty problem

SEP

the inittab configuration are right as u said , the UPS_CONF file is true

i made rmsf -H H/W PATH for asio0 and insf -e

then recreat the devices files from sam , and ttyp01 did not created
i dont know why , i mean it should creat the orginal device file
tty0p0 tty0p2 tty0p3 tty0p4 are created where is tty0p1

or how can i add the /dev/tty0p1 0x000100
thanx
Arafat
Darren Prior
Honored Contributor

Re: configuring ups and tty problem

Hi,

Have you recently had the GSP firmware updated, or applied the console driver patches? The fact that you have tty0p0, p2,p3,p4 suggests that this is the case - p3 is then used for the UPS.

Can you confirm that you are using the lansafe s/w to monitor the ups? I believe that ups_mond can only monitor HP's range of UPS, hence you should not have ups_mond in /etc/inittab if this is the case. Also the contents of ups_conf which is used only by ups_mond is irrelevant.

regards,

Darren.
Calm down. It's only ones and zeros...
Zeev Schultz
Honored Contributor

Re: configuring ups and tty problem

Please post:
ioscan -fnCtty
swlist -l product | grep -e Mux -e mksf
in GSP (press Ctl+B,get GSP> prompt) check
with "HE" command GSP rev.,what is it?
Are you sure that UPS got connected to the
UPS port of 3-heads rs-232 cable (not the remote one)?

So far :)

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
mohammed arafat_2
Frequent Advisor

Re: configuring ups and tty problem

Daren
i'm using lansafe for ups mangment

i did not made any firmware upgrade

so i should delete the ups_mond from inittab
and tty0p3 will the serial for the ups

is that true ??!!
Arafat
mohammed arafat_2
Frequent Advisor

Re: configuring ups and tty problem

Daren
i'm using lansafe for ups mangment

i did not made any firmware upgrade

so i should delete the ups_mond from inittab
and tty0p3 will the serial for the ups

is that true ??!!
Arafat
mohammed arafat_2
Frequent Advisor

Re: configuring ups and tty problem

Daren
i'm using lansafe for ups mangment

i did not made any firmware upgrade

so i should delete the ups_mond from inittab
and tty0p3 will the serial for the ups

is that true ??!!
Arafat
Darren Prior
Honored Contributor

Re: configuring ups and tty problem

Hi,

If you are using lansafe to monitor the ups then you should definitely remove the ups line from inittab (or change the respawn line to off and run init q.) Check that you have no ups_mond processes by running ps -ef | grep ups.

If ups_mond was running on the ups port you would have problems with either lansafe or kermit being able to use it.

I believe tty0p3 will be your ups port now. I've read that after a certain patch level and GSP revision tty0p1 is no longer used.

regards,

Darren.
Calm down. It's only ones and zeros...
mohammed arafat_2
Frequent Advisor

Re: configuring ups and tty problem

Darren

can you please send me or link me where did u check that tty0p1 is no longer used after certin patches ,

and one last thing

the steps are

1) from sam--- ups
creat port tty0p3 for ups
and make the demon inactive
2) go to inittab # or off the ups
then test with kermit and run lansafe
Arafat
Zeev Schultz
Honored Contributor

Re: configuring ups and tty problem

Mohammed,
As Daren has said and please see the line in
my reply - check for patches (esp. insf and mux) level.What happens is that even if you
have these patches installed BUT doesn't apply
a certain GSP firmware the whole solution worths nothing and you still would have problems even after setting to a new tty.

Best regards

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Darren Prior
Honored Contributor
Solution

Re: configuring ups and tty problem

Hi,

Some of the information can from HP internally viewable documents, but the special instructions of the patch text of PHNE_27788 (Mux/Pty patch for 11.00) mentions the GSP firmware/patch revision/insf link. The equivalent patch for 11i is PHNE_27760.

The insf patch needed is PHCO_27370 for 11.00, PHCO_28169 for 11i.

I'd suggest you don't use SAM in this instance. When SAM does anything related to the UPS it is expecting to see an HP UPS and will configure ups_mond. If you need to create the device file then something like insf -e -d asio0 should be sufficient.

Your step 2 is correct, but you must run init q after editing inittab so that the changes take effect.

regards,

Darren.
Calm down. It's only ones and zeros...
Tony Willis_1
Frequent Advisor

Re: configuring ups and tty problem

It sounds as if you are receeiving very good assistance.
You can save yourself a lot of trouble in the future by using APC for your UPS needs.
The setup, monitoring tools, and support is excellant. Theur models change often but, APC has served me well for 10 years.
I am notified when the temperture or voltage varies from whatever limit I decide by e-nail, by pafer, or by phone.
I know this does not help you now but, maybe in the future.

Tony
"Not Today,Nice Try, Next Time"