1828184 Members
2491 Online
109975 Solutions
New Discussion

TCP configuration

 
nos.
Occasional Contributor

TCP configuration

i'd to know tcp configuration such as "session time out", "keep alive time"

how can i do?

thanks so much
3 REPLIES 3
Guy Peleg
Respected Contributor

Re: TCP configuration

Examine the setup:

$tcpip sysconfig -q inet

tcp_keepalive_default = 0 ! Keepalive system-wide default; 0 = disabled
tcp_keepinit = 150 ! Conection Initialization timeout
tcp_keepidle = 14400 ! Send 1 probe every "keepidle" time
! If the above failed,
tcp_keepcnt = 8 ! retry sending a probe "keepcnt" times,
tcp_keepintvl = 150 ! with an interval of "keepintvl".


The following will change the setup:

Note: This will only apply to sockets built after the Keep-Alive setup.

$ sysconfig -r inet tcp_keepalive_default=1 ! Enable Keep-Alive
$ sysconfig -r inet tcp_keepinit=20 ! keepinit = 10 seconds
$ sysconfig -r inet tcp_keepidle=60 ! keepidle = 30 seconds
$ sysconfig -r inet tcp_keepcnt=4 ! keepcnt = 4
$ sysconfig -r inet tcp_keepintvl=30 ! keepintvl = 15 seconds

Martin P.J. Zinser
Honored Contributor

Re: TCP configuration

And to be sure that the values
stay that way put the commands
in a DCL procedure and include it in your system startup
Pim van Velzen
Advisor

Re: TCP configuration

You can create the file sys$startup:tcpip$systartup.com for system
specific changes, it will be invoked by the
regular TCP/IP startup procedure.
However it might be necessary to restart the
already started services, to make the changes
active.

In V5.3 the changes can be made permanent by registering them into the TCPIP$ETC:SYSCONFIGTAB.DAT file.
Use the utility SYSCONFIGDB to make changes
to the database-file. This is described in section 1.6 of the Release Notes.