To display only listening ports issue the command
/F snstcp,NETSTAT CONN REMPORT(0)
Sample display:
T00IJ000I NETSTAT CONN REMPORT(0) T01NT020I Job SNSTCP processing: NETSTAT CONN REMPORT(0) T01NT054I TCP OE 0.0.0.0:513<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 55 Idle 27:36:17 J=INETD T01NT054I TCP ATLI 0.0.0.0:516<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 22 Idle 27:38:32 J=SNSTCP T01NT054I TCP ATLI 0.0.0.0:21<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 21 Idle 27:38:32 J=SNSTCP T01NT054I TCP ATLI 0.0.0.0:23<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 6 Idle 27:38:34 J=SNSTCP T01NT054I TCP OE 0.0.0.0:8009<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 13245 Idle 42:47:28 J=MSMM1 T01NT054I TCP ATLI 0.0.0.0:111<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 2 Idle 27:38:35 J=SNSTCP T01NT054I TCP OE 0.0.0.0:8044<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 15 Idle 27:38:32 J=XCOM T01NT054I TCP OE 0.0.0.0:139<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 37 Idle 27:38:21 J=EKMSERV T01NT054I TCP OE 0.0.0.0:2222<-->0.0.0.0:0 Listening T01NT055I Bytes: 0 in, 0 out. Ses# 56 Idle 27:36:17 J=INETD
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.