Operating System - HP-UX
1820223 Members
4103 Online
109620 Solutions
New Discussion

Extraneous/garbage "A" Characters Printing to the Console

 
SOLVED
Go to solution
Beth Richardson
Advisor

Extraneous/garbage "A" Characters Printing to the Console

Hi All,

I am having an annoying problem with consoles on two of my systems. When I log on to the MP and go to the console, “A” characters repeatedly print on the display. An “A” seems to be printed to the screen about once every 6 seconds. It is not sent back to the system when I hit a carriage return, but it makes typing in commands painful, especially when I have to backspace, because I can see the “A” on the line, but the system does not recognize that it is there. And, if I leave the console long enough, it just slowly fills up with "A" characters. The problem does not occur in the MP (unless, of course, I go to the console). The problem occurs on the LAN console, the Web console, and when I physically attach a console to the “console” connector on the server.

A few months ago, we received four used systems. The problem is occurring on two of these systems. The other two don’t have this problem, and none of our other systems have this problem. The four "new-to-us" used systems are rp7410s running HP-UX 11.11.

The characters begin to appear as soon as I am transferred from the MP to the console (in other words, after typing “co” at the Main MP menu). They even appear in the login fields before I login:

sys1 [HP Release B.11.11] (see /etc/issue)
Console Login: Abeth
Password: AA

Another example:
sys1> ps -ef A| grep something

And, another:
sys1>AAAAA

Does anyone have any ideas about how to solve this problem?

Thanks in advance,
Beth
32 REPLIES 32
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Can you run "stty -a" on one console that is displaying the problem and one that isn't and compare/contrast the results? Also what is running on the console "ps -tconsole" in each case?
Bill Hassell
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Sounds very much like a rogue process being scheduled with at, inittab or it is running by itself with a sleep 6. Since it is running even before login, the process is writing to /dev/console (which unfortunately any user can do). Since you said the system was used, did you re-install from CDs? If not, you've just inherited all the problems of the previous owner, not something I would ever put into production.

One other possibility: is the console plugged into the console port and not the UPS port? The UPS port may have the UPS daeamon trying to communicate on thart port...or the UPS daemin may have been pointed to the console rather than the UPS port.


Bill Hassell, sysadmin
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Stephen,

Here is the information you requested (and thanks for the help)... Nothing jumped out at me, but maybe you will see something.

Problem System 1:
sys1>stty -a
speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 = ^@; swtch = ^@
stop = ^S; start = ^Q; susp = ^Z; 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

sys1> ps A-tconsoleA
PID TTY TIME COMMAND
1663 console 0:00 ksh
6033 console 0:00 ps

Non-problem System 2:
sys2> stty -a
speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
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

sys2>ps -tconsole
PID TTY TIME COMMAND
12896 console 0:00 ksh
23551 console 0:00 ps
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Hi Bill,

I had already compared inittabs on the systems due to some other posting I had seen on the forum. The only major difference that I noticed between the good pool and the bad pool was the following:
cim1:3456:respawn:/opt/wbem/sbin/cimserverd ("good" systems have it, "bad" ones don't)

I came to the conclusion that this didn't impact the problem.

When I physically attach a console to the server, I attach it to the "console" attachment on the A6144 connector that I attach to the MP serial port on the server.


The "used" systems replace 4 N4000s that we had. We took make_net_recovery images of the N4000 systems and then dropped these images onto the rp7410s. Thus, I believe that anything we could have "inherited" is now gone.

Also, you made mention of UPS. A coworker set up some kind of UPS monitoring. The bad systems have the A6144 connector attached to the MP serial port on the server. The UPS connection is then attached to the UPS serial port on the UPS. In our configuration, we have sys1 and sys 2 using one UPS, and sys3 and sys4 using another UPS. sys1 and sys3 (both "bad" systems) have the serial connection to the UPS serial port from the A6144 connector on the MP serial port.

Based on your comments, I am starting to suspect the UPS connection and the monitoring. Here is some additional information:
bad-sys1> ps -ef | gArep -i ups
root 9 0 0 Sep 1 ? 0:00 supsched
root 1981 1 0 Sep 1 ? 0:03 /opt/upsmgr/proxy/bin/upsagt
root 1949 1 0 Sep 1 ? 0:01 /opt/upsmgr/client/bin/upsmgrcagt
root 2672 1 0 Sep 1 ? 5:41 /opt/upsmgr/manager/bin/upsmgrmon
root 1982 1981 0 Sep 1 ? 6:55 ptupsd -d/dev/tty0p0 -n0
root 2551 1 0 Sep 1 ? 0:10 /bin/sh /opt/upsmgr/manager/bin/upsmgrstart -b



good-sys2>ps -ef | grep -i ups
root 9 0 0 Sep 1 ? 0:00 supsched
root 2867 1 0 Sep 1 ? 0:03 /opt/upsmgr/client/bin/upsmgrcagt

Thanks,
Beth
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Hi Beth,

you wrote you cloned the system using a backup of the N4000 and restore it to the rp7410.

This isn't a good idea at all.

Took this from the ignite docs:

...
With very different architecture types, for instance npars capable systems vs. non-npars capable systems, some software may not be configured correctly if the golden images or recovery archives used for cloning were created on non-npars capable systems; the reverse is true also
...

This might be the cause for some problems.

But anway, check if the UPS software is using the correct device files.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Look at /etc/ups_conf to see which port the UPS daemon is running against.

Should say something like

upstty:/dev/tty1p0 # Port 2 for UPS rs-232

Try writing something to that port

echo "Hello" > /dev/tty1p0

It SHOULDN'T come out on the console. If it does your device file is probably wrong.
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Hi Stephen,

Thanks for the detailed pointer.

sys1> more /etc/ups_conf
shutdown_delay_mins:1
shutdown_timeout_mins:5
upstty:/dev/tty0p1

sys1> echo "arrrrrgggh" > /dev/tty0p1


Seems like this is not the problem. But, I am learning some handy things from you folks...

Regards,
ABeAAAAthAAAAAAAAAAAAAAAA...
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

you wrote your UPS software config some posts above:
...
root 1982 1981 0 Sep 1 ? 6:55 ptupsd -d/dev/tty0p0 -n0
...

do the test again using /dev/tty0p0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Hi Torsten,

I think you are on the same track as I am. I think that the tty is set in a two different places. The /etc/ups_conf shows /dev/tty0p1. However, a ups-related process shows /dev/tty0p0 (ptupsd -d/dev/tty0p0 -n0). I believe that this is the HP PowerTrust daemon. Using /opt/upsmgr/proxy/bin/setup, I see that UPS configuration is:
UPS-ID: 1, Daemon: ptupsd, Device: /dev/tty0p0, IdentName:

So, I am inclined to believe that this is the problem.

And, per your suggestion (thanks), entering the following on a non-console login:
echo "arrrgggh" > /dev/tty0p0

results in the following on the consoles screen:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAarrrgggh

At this point, I feel that I need to reset the UPS configuration via the setup program above (or some other way).

I will let you know how it turns out.

Thank you,
Beth
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Probably worth pointing out that /dev/console and /dev/tty0p0 are both devices for the console, as is /dev/syscon. The problem appears to be - why is ptupsd writing 'A's to the device in the first place?

What does

# stty -a < /dev/tty0p0

give you?
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

BTW, depending on the type of your UPS, you will need only one software

ups_mond *or* UPS Manager

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Hi Stephen,

Thanks.

Here is the information you asked for (plus a bit more):
sys1> stty -a < /dev/tty0p1
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

sys1> stty -a < /dev/tty0p0
speed 1200 baud; line = 0;
rows = 0; columns = 0
min = 0; time = 5;
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

sys1> All /dev/tty0p1
crw--w--w- 1 bin bin 1 0x000100 Oct 25 2003 /dev/tty0p1

sys1> ll /dev/tty0p0
crw--w--w- 1 bin bin 1 0x000000 Sep 20 08:47 /dev/tty0p0

Regards,
Beth
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Anything else using /dev/tty0p0 ?

# ps -ttty0p0

Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Stephen,

sys1> ps ttyA0p0
PID TTY TIME COMMAND
1663 console 0:00 ksh
18441 console 0:00 ps

Regards,
Beth
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Was the output of

# ps -t tty0p0

or

# ps tty0p0

I meant the first one :)
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Sorry about that!

sys1> ps -ttty0p0
PID TTY TIME COMMAND

sts1> ps -ttty0p1
PID TTY TIME COMMAND

Regards,
Beth
Stephen Keane
Honored Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Sorry, I got the ps copmmand wrong anyway!

# ps -ef | grep tty0p0

Otherwise you'd only see processes with /dev/tty0p0 as an attached terminal, of which there aren't any.
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

correction:

sys1> ps -t tty0p0

put a space between!

sys1> ps -t tty0p0


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Please tell us the type/name of your UPS, because you have to disable one of the software products.
I assume its a PowerTrust II LR or PowerTrust II MR. Is there any LAN port on this UPS?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Torsten:

The extra space did not seem to change the results:
sys1> ps -t tty0p0
PID TTY TIME COMMAND

sys1> ps -t tty0p1
PID TTY TIME COMMAND


Stephen:
I believe these results are saying that the UPS Monitor II process is using the port 0 tty.

sys1> ps -ef | grep tty0p0
root 1982 1981 0 Sep 1 ? 7:11 ptupsd -d/dev/tty0p0 -n0
beth 23078 1663 1 10:13:42 console 0:00 grep tty0p0

sys1> ps -ef | grep tty0p1
beth 23057 1663 1 10:13:34 console 0:00 grep tty0p1


Thanks,
Beth
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

Now we have to decide if we need the ups manager (needs a new config) or if ups_mond can do the job.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Stephen Keane
Honored Contributor
Solution

Re: Extraneous/garbage "A" Characters Printing to the Console

They appear to say that yes. I don't have ptupsd on any of my servers, do you have a man page on it? Can you look up the flags -n and -d to see what they do? Have you tried stopping the daemon (temporarily if you actually have a UPS).

Usually the port that the UPS daemon runs against is connected to the UPS, not a console port. It allows the daemon to monitor the condition of the UPS. If you have a UPS, how is it physically connected to the server? If you don't have a UPS then the daemon shouldn't be running anyway.
Beth Richardson
Advisor

Re: Extraneous/garbage "A" Characters Printing to the Console

Torsten,

These systems are using Power Trust II MR.

As for the ups_mond - from what I have been reading, this is not the daemon that my software uses. The software being used here is the UPS Manager II software. It has the ptupsd daemon rather than the ups_mond.

Regards,
Beth
Torsten.
Acclaimed Contributor

Re: Extraneous/garbage "A" Characters Printing to the Console

OK, thanks. It is connected to a rp7410, isn't it?

The serial cable has to be connect to the UPS port of the lower MP. If there is only 1 system with only 1 npar connected, the ups_mond is enough.
If there is more than 1 partition or more than 1 server, you'll need the ups manager. In this case disable the ups_mond in the inittab file.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!