Operating System - HP-UX
1835025 Members
2440 Online
110073 Solutions
New Discussion

Re: uugetty corrupted after phone line problems

 
Ed Hon
Regular Advisor

uugetty corrupted after phone line problems

On HP-UX 11.00, I have a US Robotics Sporter 28.8 modem connected to a 16 port mux card, using hardware flow control. Normall, when I dial in using ProComm Plus, everything is fine, and when I log out of Unix, the connection automatically hangs up. Then, we had phone line problems: noisy connections or whatever. When I logged out, I got the usual "logged out" message but the connection would persist. As a matter of fact, if I hit the key, I'd get a login prompt again, so I used ProComm to do a manual hang up. Problem is, when I dialed in again, the modem connection would be established, but I can never get a Unix login prompt. It would not work, until I had someone kill the uugetty process on that port and allow it to respawn. Is there a way of configuring things, so that it automatically fixes this problem? The /etc/gettydefs entry is:

19200 # B19200 HUPCL IGNPAR ICRNL IXON OPOST ONLCR CS8 CREAD
ISIG ICANON ECHO ECHOK ISTRIP IXANY TAB3
# B19200 SANE CS8 ISTRIP IXANY TAB3 HUPCL
#login: #19200

and the /etc/inittab entry is

a1:3:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd2a3_hw 19200

Thanks.
4 REPLIES 4
Anthony deRito
Respected Contributor

Re: uugetty corrupted after phone line problems

Ed, as per uugetty man page:

"Note that with the -r option, several carriage-return characters might be required before the login message is output."

and

"...-r option (this causes uugetty to wait to read a character before it enters the login message,..."

After your attempt to re-establish a connection, did you try pressing the Enter key several times? This is why you finally got the login prompt the first time you pressed the enter key.

Tony
Insu Kim
Honored Contributor

Re: uugetty corrupted after phone line problems

I experienced almost similar problem with the same US Robotics modem before.
The problem is not on HPUX but on the configuration of modem itself.
Initialize modem to factory default or check both DIP switch setting and Register values of modem with reference manual from US Robotics and try again.

I took 2 days to make US Robotics modem to fuction before.
Good luck!
Never say "no" first.
Devbinder Singh Marway
Valued Contributor

Re: uugetty corrupted after phone line problems

Ed,

UUGETTY allows connections both way i.e. dial out and dial in . Do you have any other jobs that require the use of a modem for example something like uucp which runs uucico demon checks if anything is queued and if it sees the modem free you can dial out ( hence setting uugetty).

If you only use the modem for dialing in purposes ,, try the following:-

in the inittab try removing the -r option
as mentioned by Anthony this requires a character hence you press enter ( this is normally useful with UUCP), Have you tried using getty instead of uugetty?
Nb:- THe device file you use should be the appropriate onen i.e. dial in and dialout
or dial in ONLY .

Seek and you shall find
Ed Hon
Regular Advisor

Re: uugetty corrupted after phone line problems

Thanks for the three replies. My responses are

Anthony - After we had the phone line problem, I did hit the key three times after the connection was established but never got the login prompt. Normally, it takes only one key. I have removed the -r, and indeed the login prompt appears immediately after the connection is established. Thanks.

In-Su - I followed one of the HP KBdocs and believe I have the modem configured correctly. DIP switches 3 and 8 are ON. Thanks.

Devbinder - The reason I am using uugetty is because we could never get getty to work, using hardware flow control. The reason we used hardware flow control was because we could never get software flow control to work. A person at the HP Support center guided me through the setup. Thanks.