1834148 Members
2032 Online
110064 Solutions
New Discussion

Problems with console

 
SOLVED
Go to solution
Toni Ribas
Occasional Contributor

Problems with console

Hi everyone,

I'm having problems with a 11.00 server. Whenever I connect to the console (through serial port and stty) it hangs after a few lines of /etc/copyright are shown.
So I decided to move /etc/copyright and place an empty file instead.
That seemed to work, but then I executed 'ls -l' and experienced the some problem.
I realised that after 18-20 lines of output, it hangs.

The only processes related to the console are:
ps -ef | grep cons
root 5315 1 0 12:25:11 console 0:00 -sh
root 5450 344 1 12:26:13 pts/tb 0:00 grep cons
root 5371 5315 0 12:25:37 console 0:00 ls -l
and the only thing I can do is killing the 'ls' and 'sh' processes.

Any clue what's going one
10 REPLIES 10
Marcel Boogert_1
Trusted Contributor

Re: Problems with console

Hi there,

Try the following command after login:

# export TERM=70096

If this works, your .profile set the TERM variable wrong.

MB.
Eric Antunes
Honored Contributor

Re: Problems with console

You can try also:

export TERM=hp
Each and every day is a good day to learn.
Toni Ribas
Occasional Contributor

Re: Problems with console

Nope.
None of those worked.
And I had to 'kill -1' the getty process in order to connect again.

This is what I get:
hp9sap02:/>export TERM=hp

hp9sap02:/>
hp9sap02:/>ls -l

total 3788
-rw------- 1 root sys 4676 Jul 3 17:42 .ICEauthority
-rw------- 1 root sys 142 Jul 3 17:42 .TTauthority
-rw------- 1 root sys 294 Jul 3 17:42 .Xauthority
drwxr-xr-x 11 root sys 1024 Jul 3 17:49 .dt
-rwxr-xr-x 1 root sys 5451 Apr 20 2001 .dtprofile
drwx------ 2 root sys 96 Apr 19 2001 .elm
drwxr-x--- 2 root sys 96 Dec 14 2001 .hh
-r--r--r-- 1 bin bin 1145 May 23 2002 .profile
-rw-rw-rw- 1 root sys 18 Dec 13 2001 .pvprinters_ver1
-r-xr-xr-x 1 bin bin 4448 Nov 11 1999 .q4rc.pl
-rw-rw-rw- 1 root sys 316 Mar 18 20:00 .rhosts
-rw------- 1 root sys 15658 Sep 9 13:58 .sh_history
drwxr-xr-x 5 root sys 96 Jun 28 2001 .sw
-rwxr-xr-x 1 root sys 370 Nov 2 2003 ChangeEMC.sh
drwx------ 2 root sys 96 Apr 19 2001 Mail
drwxr-xr-x 2 root sys 96 Jun 28 2001 SD_CDROM
drwxrwxrwx 2 root sys 96 Oct 5 2001 XCOM
lrwxr-xr-t 1 root sys 8 Apr 20 2001 bin -> /usr/bin
drwxrwxrwx 2 root sys 96 Apr 20 2001 cdrom
dr-xr-xr-x 18 bin bin 5120 Jul 19 09:43 dev
-rw-rw-rw- 1 root sys 807 Sep 9 06:50 espacio_f
dr-xr-xr-x 31 bin bin 7168 Sep 9 11:59 etc
drwxrwxrwx 4 root sys 96 May 7 2001 export
drwxr-xr-x 6 root root 96 Feb 14 2003 gestion
drwxr-xr-x 17 XCOM xcomusers 1024 Jun 7 09:45 home
-rw-r--r-- 1 root sys 867368 Sep 9 06:52 hp9sap02.err
-rw-rw-rw- 1 root sys
Sยภเl Kย๓คг
Respected Contributor

Re: Problems with console

It is just the matter of seeting the display variable .
#export TERM=vt100
or
#export TERM=hp

regards
SK
Your imagination is the preview of your life's coming attractions
Dave Unverhau_1
Honored Contributor

Re: Problems with console

Toni,

What are you using for a console? Is is possible that you have a handshaking problem? Is the console terminal (or terminal emulator) set for hardware or software (xon/xoff) handshaking?. Make sure it matches the handshaking used by the getty.

Best Regards,

Dave
Romans 8:28
David Nixon
Valued Contributor

Re: Problems with console

Does your server has a Guardian Service Processor? This sub-system will have access to the serial port.
I have experienced console hangs that
were due to some interaction with the GSP.
I reset the GSP -which you can do without
affecting the server - and console
operations from the server resumed their
normal speed.
After updating the GSP firmware
there has been no re-ccurence of
console "slow-downs".
Toni Ribas
Occasional Contributor

Re: Problems with console

I'm using a Cyclades Alterpath Console Server.

Actually I have about a hundred servers connected to this system with no problems.
This server's console access worked fine until last week.

I'm not 100% sure but I'd say it's a hardware emulation. You just connect your HP serial port to a port of the console server.
The transmission is made at 9600 bps (8 data bits, no parity, no flow control).
john korterman
Honored Contributor
Solution

Re: Problems with console

Hi,

is the problem related to output that needs to be scrolled. If yes, check doc id KBRC00010244 in the tech base.
A European link to the doc:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910700

regards,
John K.
it would be nice if you always got a second chance
Bill Hassell
Honored Contributor

Re: Problems with console

I use a Cycldes-TS terminal server but that is very likely not the problem. In this case, the 'console' is going through a serial-to-LAN conversiobn, and you are probably connecting to the console without a 'real' terminal, an emulator most likely. The first thing to do is to check pacing which is typically XON/XOFF. What may be happening is that your terminal emulator can't keep up with the flow of text from the computer (through the Cyclades, to the LAN, through a PC, into a terminal emulator) and the emulator said to stop with the XON character.

If you check at the HP-UX side, you may see all the data going out but it disappears after a few lines at the emulator. What is probably happening is that the emulator just ignores data until the line goes quiet and then starts receiving and displaying data again. What gets tricky is setting the Cyclades *and* the emulator to properly send the XOFF code to the HP 9000.


Bill Hassell, sysadmin
Toni Ribas
Occasional Contributor

Re: Problems with console

Thanks a million John.

That was exactly that was happening.
The document solve the problem.

Toni