Operating System - HP-UX
1838378 Members
4032 Online
110125 Solutions
New Discussion

Re: Telnet login prompt time out ...

 
Marco Penning
New Member

Telnet login prompt time out ...

Hi,

When we start a Telnet session and do not login within 60 seconds the telnet session is automaticlly ended.

<<>HP-UX tux1 B.11.11 U 9000/800 (tb)

login:


>>


Because of a specific application I would like to extend this period for our endusers. Is this possible? I cannot find information about this anywhere, so any help would be great...

Thanks!

Marco

7 REPLIES 7
Jose Mosquera
Honored Contributor

Re: Telnet login prompt time out ...

Hi,

Use the environment variable TMOUT. You can set it either in
1) /etc/profile
2) $HOME/.profile (for sh, bash, ksh shells)
3) $HOME/.cshrc or $HOME/.login (for csh, tcsh shells)

For 2), export TMOUT=600 (for 600 seconds or 10 mins)
For 3), setenv TMOUT 600

Rgds.
RAC_1
Honored Contributor

Re: Telnet login prompt time out ...

Look at these two ndd variables.

tcp_ip_abort_cinterval - R2 during connection establishment
tcp_ip_notify_cinterval - R1 during connection establishment

ndd -h tcp_ip_abort_cinterval

The default is 75 secs. Increase it and check.

ndd -get /dev/tcp tcp_ip_abort_cinterval

But what does the target host's syslog.log file says??

Anil
There is no substitute to HARDWORK
Jose Mosquera
Honored Contributor

Re: Telnet login prompt time out ...

Ooops,

My previuos answer is related with idle time, I'll looking for an adecuated solution.

Rgds.
Jose Mosquera
Honored Contributor

Re: Telnet login prompt time out ...

Hi again,

Pls try with ndd configurable parameter, at which time telnet would time out un reachable attempt would be "tcp_ip_abort_cinterval"
Default vaule is 75000ms = 75sec = 1:15m

To get the value:
#ndd -get /dev/tcp tcp_ip_abort_cinterval

To set the value:
#ndd -set /dev/tcp tcp_ip_abort_cinterval

For additional info:
#man ndd

Rgds.
Marco Penning
New Member

Re: Telnet login prompt time out ...


Thanks for the quick response. I altered the parameter with ndd but I still get disconnected after 60 secs. Do I have to reboot or restart something?

Thanks again
Marco
Chris Wilshaw
Honored Contributor

Re: Telnet login prompt time out ...

I suspect that the message



is being generated by your telnet client, rather than the server.

What package do you use to connect? It may be that it has its own timeout value.
Marco Penning
New Member

Re: Telnet login prompt time out ...


We're using WRQ Reflection 11. But when connecting to a AIX system this time out thing doesn't occur so I think it's HP related?

Marco