Operating System - HP-UX
1826421 Members
4108 Online
109692 Solutions
New Discussion

Telnet logout after connection lost

 
SOLVED
Go to solution
David Norman
Occasional Contributor

Telnet logout after connection lost

Can someone please let me know what the setting is that controls how long telnet waits before logging out after the connection is lost (today someone power-cycled the router!). Our system (10.20) seems to be set for 2 hours - I would like to make this somewhat shorter. Users would be running an application (UniVerse) and would not be at the shell prompt.
Thanks.
2 REPLIES 2
Steven Sim Kok Leong
Honored Contributor
Solution

Re: Telnet logout after connection lost

Hi,

Use nettune to configure your network tunable parameters to drop connections faster than the default 2 hours.

*Parameter wait time before probing the connection: tcp_keepstart
*Parameter interval between probes: tcp_keepfreq
*Parameter maximum time or tries to probe connection before dropping: tcp_keepstop
*Unit of measure: seconds

To set your tcp_keepstop from the default 2 hours (7200) to say 30 mins (1800), run

# nettune -s tcp_keepstop 1800

Hope this helps. Regards.

Steven Sim Kok Leong
David Norman
Occasional Contributor

Re: Telnet logout after connection lost

Thanks, Steven.

It is actually tcp_keepstart that is set for 2 hours - tcp_keepstop is set for 10 minutes. I will change keepstart to around 30 minutes.

Thanks again for pointing me in the right direction.

Regards,
David Norman.