Operating System - HP-UX
1832979 Members
3690 Online
110048 Solutions
New Discussion

Re: Disconnect from Unix server

 
SOLVED
Go to solution
Sharad Kowarkar
Occasional Advisor

Disconnect from Unix server

Hello, I am accessing my HP-UX server from home using RAS (Remote Access Server). Whenever I leave my telnet session around 20-30 minutes untouched. I get disconnected from RAS. At first I thought it is due to my dial-up setting or RAS settings. But I have not set any idle connection time-out for my connection. And when I access my AS/400 using same methode I can leave my terminal open and untouched for hours. Are there any settings on HP-UX those I can set. Please Help
Consistency in quality,speed and change is what we need.
9 REPLIES 9
Joseph C. Denman
Honored Contributor

Re: Disconnect from Unix server

Check the TMOUT variable on your server. When you telnet into the system do env | grep TMOUT

TMOUT=30 (timeout in 30 seconds)

...jcd...
If I had only read the instructions first??
James R. Ferguson
Acclaimed Contributor

Re: Disconnect from Unix server

Hi:

Check the value of the TMOUT environmental variable (echo $TMOUT). The value's units are in seconds. If non-zero, the shell will terminate if a command is not entered within TMOUT seconds after issuing the PS1 prompt.

...JRF...
Magdi KAMAL
Respected Contributor

Re: Disconnect from Unix server

Hi Sharad,

The environment variable TMOUT specify disconnection if it's value is exeeded between two successif unix commands.

The value associated with this variable is expressed in seconds.

you may adjust it to your desired value.

Magdi
John Waller
Esteemed Contributor

Re: Disconnect from Unix server

As others have mentioned look at your TMOUT value, but this is only an issue if you are being disconnected from the shell (command line). I've found if using an application or other utility e.g sam , vi , top , then TMOUT does not take effect and you should be able to stay logged in for ever.
Sharad Kowarkar
Occasional Advisor

Re: Disconnect from Unix server

Thanks lot for immediate replies. I've checked TMOUT paramter, it is 0. And This happens only when I'm connecting using RAS. It doesn't happen when I am connecting using telnet in office. At home it happens when I leave my terminal unattended. Worst case is, usually I apply oracle application patches from home. So when I start running a patch interactively I have to sit by my PC and do something to keep connection active. These patches some time take 15 minutes to 3 hrs depending on their size. Hence I have to stay awake late night, even I can leave it unattended. Are there any parameters for remote settings. Please Help
Consistency in quality,speed and change is what we need.
Bill Thorsteinson
Honored Contributor
Solution

Re: Disconnect from Unix server

There are a few places you may get timed out. The
modem at either end may disconnect you if you have
not activity for a certain period (usually 10 to 20
minutes). I haven't worked with RAS for a long time
but I think it also has an inactivy timer.

Try running something like

while sleep 600; do echo '--timer--'; done &

before your patches. This will force activity on the
modem line every 5 minutes. This should keep the line
alive unless the check is for incoming activity.
Manuel P. Ron
Frequent Advisor

Re: Disconnect from Unix server

It is by your RAS configuration (RAS is desconnected, isn't it).
If you didn't specified any timeout, it don't mean that it is not set to 15 minutes by default, by example.
Look at your PC and change it.
Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month. - Wernher von Braun
Varghese Mathew
Trusted Contributor

Re: Disconnect from Unix server

Hi,

If you are using normal unix shells -- then try start running tsm (Multiple terminal sessions Manager). As this program always runs so your programmes excecuted from the child shells won't get hung, we use the same technique to connect to our servers at office through RAS, for longer sessions.

Hope this helps
Cheers !!!
Mathew
Cheers !!!
Sharad Kowarkar
Occasional Advisor

Re: Disconnect from Unix server

Thanks a lot everyone! What I did last night is run the script as suggested.
while true;
do
sleep 2
echo '--timer--';
done

And this solution worked fine for me.
Thanks a lot again.

Mathew I will also try your solution about TSM.
Thanks!
Consistency in quality,speed and change is what we need.