How do I display active connections?
search cancel

How do I display active connections?

book

Article ID: 51923

calendar_today

Updated On:

Products

TCPaccess

Issue/Introduction

Description

How to display connections currently running on the stack?

Solution

The console command

/F snstcp,NETSTAT CONN   
will display all ports in use in any manner.

All Netstat displays issued in this manner will appear in your JESMSGLG or T01LOG, depending on how you have logging configured.

They will NOT appear in the system log itself.

 /F snstcp, NETSTAT CONN LOCPORT(port_number)                               
can be used to see the status of a specific local port along with all connections for that port.

An excerpt from the NETSTAT CONN display:

T00IJ000I NETSTAT CONN
T01NT020I Job RUNTCP processing: NETSTAT CONN
T01NT054I TCP  ATLI 192.168.86.239:23<-->172.29.26.76:1378 Connected
T01NT055I  Bytes: 244 in, 4753 out. Ses# 9806 Idle 00:22:06 J=RUNTCP
T01NT054I TCP  OE   0.0.0.0:5140<-->0.0.0.0:0 Listening
T01NT055I  Bytes: 0 in, 0 out. Ses# 58 Idle 09:23:17 J=DB2SYS1
T01NT054I TCP  OE   0.0.0.0:1023<-->0.0.0.0:0 Listening
T01NT055I  Bytes: 0 in, 0 out. Ses# 62 Idle 09:23:16 J= RUNTCP
T01NT054I UDP  ATLI 192.168.86.239:161<-->172.18.205.181:4153 Bound
T01NT055I  Bytes: 206859 in, 224691 out. Ses# 25 Idle 00:00:20 J= RUNTCP
T01NT054I TCP  OE   0.0.0.0:515<-->0.0.0.0:0 Listening
T01NT055I  Bytes: 0 in, 0 out. Ses# 6824 Idle 01:27:44 J=ESF1

An example of the NETSTAT CONN LOCPORT display for port 23 only:

T01NT054I TCP  ATLI 192.168.86.239:23<-->172.24.42.12:2134 Connected
T01NT055I  Bytes: 1031 in, 13227 out. Ses# 12200 Idle 00:04:06 J= RUNTCP
T01NT054I TCP  ATLI 192.168.86.239:23<-->172.24.2.34:1964 Connected
T01NT055I  Bytes: 34 in, 143 out. Ses# 15331 Idle 00:02:38 J= RUNTCP
T01NT054I TCP  ATLI 192.168.86.239:23<-->172.24.39.30:1466 Connected
T01NT055I  Bytes: 4789 in, 155482 out. Ses# 8712 Idle 00:03:28 J= RUNTCP
T01NT054I TCP  ATLI 0.0.0.0:23<-->0.0.0.0:0 Listening
T01NT055I  Bytes: 0 in, 0 out. Ses# 66 Idle 10:31:25 J= RUNTCP 
T01NT000I Request complete

The NETSTAT command can also be entered through TSO.
Be aware with this option that the tcpaccess.LINK must be in front of IBM's SEZALOAD in your logon concatenation or the LINKLIST or you will get IBM's NETSTAT command.
For a full description of all available NETSTAT commands please refer to the CA TCPaccess Communications Server System Management Guide.

Environment

Release:
Component: NTCPAC