- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Sessions not terminating on terminal disconnec...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:21 AM
08-02-2006 02:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:47 AM
08-02-2006 02:47 AM
Re: Sessions not terminating on terminal disconnect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:52 AM
08-02-2006 02:52 AM
Re: Sessions not terminating on terminal disconnect
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:55 AM
08-02-2006 02:55 AM
Re: Sessions not terminating on terminal disconnect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:11 AM
08-02-2006 03:11 AM
Re: Sessions not terminating on terminal disconnect
Do
sysconfig -q inet
and look for tcp_keep
(you may have had to define the sysconfig commmand. e.g @SYS$STARTUP:TCPIP$DEFINE_COMMANDS )
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:13 AM
08-02-2006 03:13 AM
Re: Sessions not terminating on terminal disconnect
and check "socket opts" for the "Keepalive" word.
If not present : tcpip set servi telnet /sock=keepalive
Then do a type of tcpip$etc:sysconfigtab.dat
and check for tcp_keepcnt, tcp_keepidle and tcp_keepintvl. To abort the telnet after 5 minutes you could set them to 5, 120 and 120 (increase 5 to the number of minutes). Default is very high (2 hours ?).
Then restart tcp (will abort a lot, better reboot).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:17 AM
08-02-2006 03:17 AM
Re: Sessions not terminating on terminal disconnect
Just before you replied, I discovered the
sysconfig -q inet
command. I had differing reports that this did not used to happen before we purchased and installed our ES47, so I first looked at the configuration on the ES40:
tcp_keepidle=150
Then looked at our ES47
tcp_keepidle=14400
Well, I guess a user won't be too upset waiting 2 1/2 minutes to log back on. Chances are he won't even notice it. But 4 hours??! I guess it is set to the maximum.
Thanks for your quick response. Should have left a message on this forum sooner, this has been dogging us for months! I will be surprised if this does not address the problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:21 AM
08-02-2006 03:21 AM
Re: Sessions not terminating on terminal disconnect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:35 AM
08-02-2006 03:35 AM
Re: Sessions not terminating on terminal disconnect
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:35 AM
08-02-2006 03:35 AM
Re: Sessions not terminating on terminal disconnect
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 03:46 AM
08-02-2006 03:46 AM
Re: Sessions not terminating on terminal disconnect
sysconfig -r inet att=val
but it is up to 6tcpip to decide if it will use the value (test it and after 5 minutes you will now). I'm sure it will not be used for open telnets.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 04:08 AM
08-02-2006 04:08 AM
Re: Sessions not terminating on terminal disconnect
Parhaps setting tcp_keepalive_default = 1
which makes it default for all tcp sockets (I think) may make it effective sooner but affects all.
I think the default values changed in some recent version of UCX so the timeout is much longer.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 05:02 AM
08-02-2006 05:02 AM
Re: Sessions not terminating on terminal disconnect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 06:05 AM
08-02-2006 06:05 AM
Re: Sessions not terminating on terminal disconnect
Note that there is a good chance that you can restart the TCP stack (or at least the Telnet portion of it) without a reboot.
For TCP/IP Services, you can stop and restart the IP stack with the system up, although you will need some connection other than a TCP/IP based connection to do it from.
Other stacks have different procedures. If not using TCP/IP Services, which stack are you using?
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 06:09 AM
08-02-2006 06:09 AM
Re: Sessions not terminating on terminal disconnect
I think you can add them to sysconfigtab.
See
http://h71000.www7.hp.com/doc/732final/6631/6631pro_004.html#over_tune
for the full horror.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 06:49 AM
08-02-2006 06:49 AM
Re: Sessions not terminating on terminal disconnect
inet:
tcp_keepidle = 150
then within TCPIP:
TCPIP> sysconfigdb -a -f inet.txt inet
This appears to have added the parameter as
TCPIP> sysconfigdb -l
displays
net:
nfs:
tcp_threads = 8
udp_threads = 8
ovms_xqp_plus_enabled = 0
vfs:
vnode_age = 120
inet:
tcp_keepidle = 150
So, it appears I should be set for our next reboot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 06:57 AM
08-02-2006 06:57 AM
Re: Sessions not terminating on terminal disconnect
As I noted previously, no reboot is needed. You just need to shutdown TCPIP services and then re-execute @SYS$STARTUP:TCPIP$STARTUP.COM
You do need to to this, of course, from either:
- a local terminal
- a terminal session using LAT
- a DECnet remote terminal session
- a SYSMAN SET ENVIRONMENT session
- (I haven't tried this recently) a batch job.
You will need to terminate all TCP/IP use for a minute or so, but that is far less time than a reboot.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:04 AM
08-02-2006 07:04 AM
Re: Sessions not terminating on terminal disconnect
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:12 AM
08-02-2006 07:12 AM
Re: Sessions not terminating on terminal disconnect
Understood, but if at all possible I would recommend not altering a setting and waiting for the next reboot to happen.
You mentioned that you have two systems, an ES40 and an ES47. Can you make the change on one of the systems, shift the load to the other system in the cluster over a period of time, and then do a restart of IP on the (now) relatively idle system?
Then you can verify that the setting is indeed the problem, and make the change for both members of the cluster.
I apologise in advance if I am writing this on the presumption that other people, who may be less knowledgeable will read this thread.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:28 AM
08-02-2006 07:28 AM
Re: Sessions not terminating on terminal disconnect
It may be several days before this opportunity arises.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:29 AM
08-02-2006 07:29 AM
Re: Sessions not terminating on terminal disconnect
if you go this way (and I think you should, one way or another) you should also enable Virtual Terminal (and this is from biological memory, so please verify: ISTR that it is by adding %X2000 to SYSGEN param TTY_DEFCHAR2 ).
Various applications (among them certainly Progress) will have the disconnected sessions (pseude-randomly, ie, if they happen to try to communicate with the remote end of the session) enter ComputeBound COM state, which again will prevent timeout...
We had quite some "interesting" time to learn this the hard way.
Success.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 01:40 PM
08-02-2006 01:40 PM
Re: Sessions not terminating on terminal disconnect
I'm amazed at the amount of discussion here before someone finally mentioned virtual terminals! (thanks Jan!)
Rather than kill the process on a disconnection, allow your users to reconnect to the same session. No lost work or context. This can be VERY handy if you have bouncy comms links.
On OpenVMS Alpha, to enable virtual terminals, set the DISCONNECT bit in SYSGEN parameter TTY_DEFCHAR2. Add %X20000 (not %X2000 - you were close Jan!)
In your startup, add the line:
$ MCR SYSGEN IO CONNECT VTA0/NOADAPTER/DRIVER=SYS$LOADABLE_IMAGES:SYS$TTDRIVER.EXE
and, for TCPIP support on TELNET and/or RLOGIN sessions:
$ DEFINE/SYSTEM/EXEC TCPIP$TELNET_VTA "TRUE"
$ DEFINE/SYSTEM/EXEC TCPIP$RLOGIN_VTA "TRUE"
You can control the time that a session will remain connectable before being kiled with SYSGEN parameter TTY_TIMEOUT (in seconds, default is 900 = 15 minutes)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 01:57 PM
08-02-2006 01:57 PM
Re: Sessions not terminating on terminal disconnect
FWIW, the reason you need all the TCPIP settings is because of the double edged sword of TCPIP. For "efficiency" Telnet sessions are not as "connection oriented" as (say) DECnet or LAT. This avoids the overheads of maintaining a strong connection between hosts, but suffers the consequence that a dropped connection will only be detected if an I/O is attempted from the surviving host (in which case it will see a failure). Eventually a keepalive message will detect the broken connection, but, by default, that can be hours.
Adjusting the keepalive parameters can reduce the time to detection. This also increases connection overheads, and defeats any arguments about how much more efficient telnet is than LAT or DECnet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 12:10 AM
08-03-2006 12:10 AM
Re: Sessions not terminating on terminal disconnect
What is the meaning of these parameters (other than keepidle we have been discussing)? I don't see just tcp_keepalive.
tcp_keepalive_default = 0
tcp_keepcnt = 8
tcp_keepidle = 150
tcp_keepinit = 150
tcp_keepintvl = 150