Operating System - HP-UX
1837179 Members
2408 Online
110113 Solutions
New Discussion

How to terminate a Hanged Commd on a 7900 Console

 
SOLVED
Go to solution
Kong Kian Chay
Regular Advisor

How to terminate a Hanged Commd on a 7900 Console

We have a Dumb-Terminal (7900) connected to a server. I was trouble-shooting telnet problem and issued command "telnet localhost". The command simply hangs. Have tried :-
CTL-C, RESET, SHIFT-RESET, SHIFT-CTL-RESET, BREAK, CTL-D, BREAK Then CTL-C, Power-Off Console then Power-On again while pressing "D".

Question : How can I terminate the hanged commd ? Note that I could NOT telnet in fr other stations to kill the commd. Reboot is out because it's an Appln Server accessed by many pple round the clock.

13 REPLIES 13
Ravi_8
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

power off the terminal, disconnect from server connect again and power on. in my case it was worked.
never give up
Kong Kian Chay
Regular Advisor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi,
Still hangs -- I OFF the console. Remove Power Cable & Serial Cable to Server fr behind. Re-plug all cables. Power ON.
Wieslaw Krajewski
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi,

Try

fuser -ku /dev/console

This kills all processes using given file. So, assuming that this is special file for your console, this should help.

Rgds.
Permanent training makes master
Kong Kian Chay
Regular Advisor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi, I cannot type any command at the console at all. The commd "telnet localhost" hangs. After all those meddlings (see above), now the screen is blank.
Wieslaw Krajewski
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi,

This command
fuser -ku /dev/console
you can run from any terminal, also when you have looged via telnet or rlogin. Do not need to have console.

Rgds.
Permanent training makes master
Curt Thompson
Respected Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Hello Kong Kian Chay,

Let me suggest that you verify everything is setup as it should be.

You said,
"After all those meddlings (see above), now the screen is blank."

Do you mean that it is totally blank (no softkeys, numbers, nothing) or that it is displaying an image but not receiving data from the host?

If its totally blank, and you hear no beep at power-on, then its dead. If however, you get the beep and you see something on the screen, then verify that your communications are still setup properly (probably 8 data bits, no parity) and that there is an asterisk in the f4 softkey box (remote mode).

In summary, the terminal should be properly configured and connected from com port1 to the host. If the terminal is working properly, then as Wieslaw suggests, the session is still hung.

Good Luck,
Curt
Kong Kian Chay
Regular Advisor

Re: How to terminate a Hanged Commd on a 7900 Console

The terminal is working properly, only the session is hanged -- beep sound when typing all those CTL, SHIFT, RESET, etc keys. Also able to goto CTL-B with "CM>" prompt.

Note: telnet fr another station to kill hanged session is OUT -- because I was actually trouble-shooting telnet problem (read 1st post).
Wieslaw Krajewski
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi,

If you know that terminal is working OK and some processes hung the terminal, but you are not able to login from other terminal, you are not able to login your server remotely via telnet or rlogin, the only thing is to reset your server.

Rgds.
Permanent training makes master
Kong Kian Chay
Regular Advisor

Re: How to terminate a Hanged Commd on a 7900 Console

Thanks for the replies, everybody. Looks like there is NO solution except REBOOT.

Therefore, would like to CLOSE this posting.

Thanks again for the attention.
Bill McNAMARA_1
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Seems it's not simply the command that hung, but the server, you may prefer to TC rather than RS to get a dump and analyse the problem.

If the command was ioscan for example and the console is killed, ioscan will end up belonging to init.

You should use tsm at console just in case stuff like that happens.. that way you can get multiple shells at your terminal.

Later,
Bill
It works for me (tm)
Jeff Gunnink
Advisor
Solution

Re: How to terminate a Hanged Commd on a 7900 Console

The set of keystrokes to get out of a hung telnet session are and ']'. You will get a prompt,
telnet>
Type q here to exit.
Volker Borowski
Honored Contributor

Re: How to terminate a Hanged Commd on a 7900 Console

Hi,
if telnet is not working, you should consider other ways to connect next time:

rexec host -l root ps -ef
rexec host -l root kill pid_of_telnet

play around with rlogin or remsh/rsh as an additional option. I just had a problem on AIX with telnet/rlogin, but rexec helped me out.

The most important option is, to test which character-sequence as a telnet-escape character really works on the console (and attach a note to the console :).

Volker
Kong Kian Chay
Regular Advisor

Re: How to terminate a Hanged Commd on a 7900 Console

Thanks everybody. The problem is now Resolved -- I have rebooted the Server on 11-Jun (Mon) morning.