1837041 Members
2388 Online
110111 Solutions
New Discussion

Re: Telnet session

 
Abhijeet_3
Frequent Advisor

Telnet session

My telnet session get disconnected when I remain inactive .

Is there any setting ? i,e timeout for inactive session.
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Telnet session

Check the variable TMEOUT

echo $TMEOUT

Thats an inactivity timeout.

If you are typing away and hitting enter when this happens its not that setting.

look for cron jobs that wipe out telnet sessions.

crontab -l

investigate from there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Abhijeet_3
Frequent Advisor

Re: Telnet session

I have checked /etc/profile & .profile file. TIMEOUT variable is not set. Also cron is not enabled.

Is there any reason ?
Steven E. Protter
Exalted Contributor

Re: Telnet session

You might not have enough terminals set up, though I doubt it.

npty 60 60 Static N/A Num ???
nstrpty 60 60 Static N/A Max ???
nstrtel 60 60 Static N/A Num ???


Could it perhaps be a feature built into the terminal software you are using. There are also several third party products you can compile that perform the inactivity timeout.

I don't remember you, so a reminder. If my or others posts have been helpful please assign points.

Good Luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Zigor Buruaga
Esteemed Contributor

Re: Telnet session

Hi,

Maybe the variable is set from other script called by .profile.
The name of the variable, if I remember correctly, is TMOUT so:

# echo $TMOUT

will give you the number of seconds of inactivity.
You can try to disable:
# export TMOUT=0
or
# export TMOUT=

and see what happens, if still get disconnected or not.

But if "echo $TMOUT" returns nothing ( or zero ) and still get disconnected, that's not the problem. What happens if you try with other user?

Hope this helps.
Kind regards,
Zigor
Donny Jekels
Respected Contributor

Re: Telnet session

look in your .profile to see if the TMOUT is being set there.

2nd, view the /etc/profile file to see if TMOUT is being set there. if it is and your not the admin for the box, then you can over ride the switch in your own .profile in your home directory.

make sure it is not your compnay policy else you'll get yourself in trouble.

in you .profile towrds the bottom add a line that reads

TMOUT=0

peace
Donny
"Vision, is the art of seeing the invisible"
Donny Jekels
Respected Contributor

Re: Telnet session

basic information
country:
INDIA
personal quote:
certification:
HP Certified Systems Administrator
ITRC member since:
April 09, 2003
last contribution date:
September 07, 2003
This member has assigned points to 9 of 37 responses to his/her questions.

do a man on "nice"

then cleanup your point assignment
"Vision, is the art of seeing the invisible"
Con O'Kelly
Honored Contributor

Re: Telnet session

Hi

The variable for Ksh & Posix shell is TMOUT and as has already been mentioned is usually set in /etc/profile or or the users .profile.
If you are using C shell then the variable is autologout.

If neither of these variables are set then its possible the timeout is being set on the firewall. Talk with your network administrator to find out if this is the case.

Cheers
Con
Sridhar Bhaskarla
Honored Contributor

Re: Telnet session

Hi,

If you don't have TMOUT setting and the local emulation software is not the culprit, then you may want to check your network switch configuration to see if there is any timeout setting there.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try