1836847 Members
2210 Online
110110 Solutions
New Discussion

telnet time out

 
subhashni
Regular Advisor

telnet time out

hello ,
how come i adjust time out for telnet session.
appreciate your help.
thanks
unix4me
4 REPLIES 4
Pedro Cirne
Esteemed Contributor

Re: telnet time out

Mel Burslan
Honored Contributor

Re: telnet time out

Start from the .profile of the users or /etc/profile by setting the variable

TMOUT=number_of_seconds

________________________________
UNIX because I majored in cryptology...
Bill Hassell
Honored Contributor

Re: telnet time out

Note that TMOUT set in /etc/profile (or in individual .profile files in each user's home directory) will close idle shells. But if the user starts another process such as vi, the shell is waiting and the timer does not run. So depending on what the users are doing, TMOUT may work pr it may have no effect until the user returns to the shell prompt.


Bill Hassell, sysadmin
Venkatesan_5
Frequent Advisor

Re: telnet time out

Hi,
If TMOUT option is not working there is a parameter tcp_keepalive_interval which need to be changed in /etc/rc.config.d/nddconf.Setting this parameter to a
couple of minutes may help to resolve the problem by automatically closing non-
responding connections. It will NOT impact sessionos or connection which are
just idle for long periods of time. To drop idle sessioon try using the shell
variables such a TMOUT.
The /etc/rc.config.d/nddconf file contains information on what value to use. Set this to 60000 for
each minute of delay, for instance a value of 240,000 will correspond to 4
minutes. Be aware that this may generate some small amount of extra network
traffic on otherwise idle connections.Next, edit the file to have the comment mark "#" removed and NDD_VALUE[0]
=240000 (or 120000 for 2 minutes):

TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_keepalive_interval
NDD_VALUE[0]=120000
After saving give a command "ndd -c". It will change the parameter without rebooting.

Hope this helps.

regds
Venkatesan.