Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old July 7th, 2008
hpietri's Avatar
hpietri Offline
Junior Member
 
Join Date: July 2007
Posts: 2
Cool Telnet Session Disconnected

When a user got disconnected from my AIX 5.3 box, the ps -ef | grep user show this user connected and 10 minutes later I run the same command and the user is no longer there. Where I can modify this 10 minutes wait time?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old July 9th, 2008
seth's Avatar
seth Offline
Senior Member
 
Join Date: June 2008
Posts: 293
Re: Telnet Session Disconnected

OK following "no" options affect the timeout of tcpip connections. But the default connection timout is arround 2 hours.
Maybe you got a much shorter value there already.

tcp_keepidle
tcp_keepinit
tcp_keepintvl


AIX TCP_KEEPIDLE
Description: This determines the length of inactivity before keepalive messages are sent
and ensuring how long a connection stays in an active/ESTABLISHED state.
Default value: 14400 (in half seconds, which is 2 hours)

TCP_KEEPINTVL
Description: Specifies how often these keepalive probe messages are sent.
The connection is considered broken after 8 unresponded probes.
Default value: 150 (in half seconds which is 75 seconds)

TCP_KEEPINIT
Description: Specifies the initial timeout value for TCP connections.
Default value: 150 (in half seconds which is 75 seconds)

To check the current setting, type "no -a", to change the settings.

The way of connection timeouts is this:
Client suddenly disconnects (clicking the "x" on the window and not tiping "exit", or client crashes)
from this time the TCP_KEEPIDLE timer is counted, when this expires the TCP_KEEPINTVL send 8 pakets in the specified interval,
the timout of this packages is set by the TCP_KEEPINIT value.
Do all 8 packages timeout connection is cleand up and the socket is freed.
What I'm nt sure is what you see as process you see in ps output. I dont know exactly the cleanup behaviour from crashed sessions.
Normally their ppid is assigned to init when the original parent process died, depends on the application I think and what kind of connections they use.

Hope that helps you, when not please tell more details.
Cheers seth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old July 9th, 2008
ross.mather's Avatar
ross.mather Offline
Senior Member
 
Join Date: January 2007
Location: Nomadic in the UK
Posts: 604
Re: Telnet Session Disconnected

Timeouts can be caused by any number of reasons, not all of which are under an AIX admins control.

The usual culprits that you can control is the TMOUT environment variable. If you set the value to 0 in /etc/profile then the connections will never end. HOWEVER you shuld be careful with this one as it can cause you to run out of telent connections.

It is often a firewall rule that kills idle connections after 10 minutes inactivity, so check that as well.
__________________
Ross Mather, IBM AIX IT Specialist.
That said anything I say here is my own opinion and not anything that you can ever hold against IBM.
Ohhh and don't forget that I make mistakes too....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old July 9th, 2008
seth's Avatar
seth Offline
Senior Member
 
Join Date: June 2008
Posts: 293
Re: Telnet Session Disconnected

Quote:
Originally Posted by ross.mather View Post
The usual culprits that you can control is the TMOUT environment variable. If you set the value to 0 in /etc/profile then the connections will never end. HOWEVER you shuld be careful with this one as it can cause you to run out of telent connections.
I think he more likely has the problem to clean up suddently disconnected sessions. TMOUT just works for idle-connected session, as long the shell did not start a sub-shell/process.
Anyway , hpietri could probably explain more his environment and tell us more background on the whole "problem".

Cheers seth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
disconnected, session, telnet

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0042-008 nimsh: request denied 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac 3074feb7 aa00e1f3 aio aix aix aio aix freeware aix memory usage aix rsync aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 bfe4c025 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gtar aix hmc root password hmc vmware ibm p6 520 libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv navisphere agent nim server pseriestech ptype and account type do not match rshd: 0826-813 permission is denied. rsync aix sc_disk_err4 scan_error_chrp vio server vmware hmc websm ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80