Operating System - HP-UX
1753283 Members
5463 Online
108792 Solutions
New Discussion юеВ

Re: Telnet session -Idle time out

 
Kuntal Gupta
Frequent Advisor

Telnet session -Idle time out

Dear experts,

HP-UX, v-11.31,

Customer may ask to set 30 mints as idle time out for telnet sessions, how to implement the same?

Regards...

Kuntal
7 REPLIES 7
merieux
Frequent Advisor

Re: Telnet session -Idle time out

Hi ,

You have to set the value of the variable TMOUT . TMOUT is in seconde .

Regards ,

avizen9
Esteemed Contributor

Re: Telnet session -Idle time out

you can set time out in users .profile below is example

TMOUT=900
madhuchakkaravarthy
Trusted Contributor

Re: Telnet session -Idle time out

hi

set TMOUT=1800 (i.e 30*60 ) in .profile in user home dir.


regards

MC
Kuntal Gupta
Frequent Advisor

Re: Telnet session -Idle time out

Yes, after adding TMOUT=60 (for testing purpose)in the .profile of the user, after being idle for 60 sec it is showing
"Shell will time out in 60 seconds". After another 60 Secs it is showing "Timed out waiting for input." and then the connection is lost.

So total 60+60=120 secs for the time out.

So, if I want exactly 60 secs after which the timed out will happen, shoud I set TMOUT=30 or I need to do something else.

Thanks...

Kuntal
vishnu.khandare
Respected Contributor

Re: Telnet session -Idle time out

Hi Kuntal,

As per ur last query, to set the time out to 60 seconds, u need to set TMOUT=60.


This will solve ur issue.
Don't forget to assign point.

Regards
Vishnu Khandare
You should deserve before U desire!!!!
madhuchakkaravarthy
Trusted Contributor

Re: Telnet session -Idle time out

hi

set the value whati said in the previous post.


regards

MC
Dennis Handly
Acclaimed Contributor

Re: Telnet session -Idle time out

>if I want exactly 60 secs after which the timed out will happen, should I set TMOUT=30

You should set it to 60 and live with the extra 60 second grace period. If you set it to 0, your users will be very upset.

A previous thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1445938

If you want exactly 30 minutes, you can use:
TMOUT=$(( (30-1) * 60 ))