Displays the list of reserved ports and the port access control configuration for unreserved ports. To configure port access control for unreserved ports, replace the port number value with the keyword UNRSV. For more information about port access control see the port access control information in z/OS Communications Server: IP Configuration Guide. For ports that are reserved by the PORTRANGE profile statement, only one output line is displayed for each range. For ephemeral port specifications, see the Netstat CONFIG/-f report description.
Provide the report for a specific TCP/IP address space by using TCp tcpname. See The Netstat command target for more information about the TCp parameter.
The default output option displays the output on the user's terminal. For other options, see The TSO NETSTAT command syntax or Netstat command output.
Provide the report for a specific TCP/IP address space by using -p tcpname. See The Netstat command target for more information about the TCp parameter.
The default output option displays the output to z/OS UNIX shell stdout. For other options, see The z/OS UNIX netstat command syntax or Netstat command output.
NETSTAT PORTLIST
Display the port reservation list in the default TCP/IP stack.
NETSTAT PORTLIST TCP TCPCS6
Display the port reservation list in the TCPCS6 stack.
netstat -o
netstat -o -p tcpcs6
The following examples are generated by using TSO NETSTAT command. Using the z/OS UNIX netstat command displays the data in the same format as the TSO NETSTAT command.
NETSTAT PORTLIST
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:24:23
Port# Prot User Flags Range IP Address SAF Name
----- ---- ---- ----- ----- ---------- --------
UNRSV TCP A* L
UNRSV TCP * FL GENERIC
00020 TCP FTPD1 D
00021 TCP FTPD1 DA
00023 TCP TCPCS DA
00025 TCP SMTP DA
04000 TCP OMVS DABU 9.67.113.10
04001 TCP OMVS DABFU 9.67.113.12 BS4TOMVS
04004 TCP * DAF S4TALL
04005 TCP * DABU 9.67.113.11
04017 TCP * DABFU 9.67.113.17 BS4TALL
04020 TCP DCICSTS DAN
05000 TCP * DARN 05000-05001
UNRSV UDP * XI
00161 UDP OSNMPD DA
00162 UDP OMVS DA
00514 UDP SYSLOGD1 DA
04020 UDP OMVS DABF 9.67.43.70 BS4UOMVS
04030 UDP * DAF S4UALL
05000 UDP MUD DAR 05000-05002
NETSTAT PORTLIST
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:24:23
Port# Prot User Flags Range SAF Name
----- ---- ---- ----- ----- --------
UNRSV TCP * FL GENERIC
00020 TCP FTPD1 D
00021 TCP FTPD1 DA
00023 TCP TCPCS DA
00025 TCP SMTP DA
04000 TCP OMVS DABU
BindSpecific: 9.67.113.10
04001 TCP OMVS DABFU BS4TOMVS
BINDSPECIFIC: 9.67.113.12
04002 TCP OMVS DABU
BindSpecific: ::6:2900:1dc:21bc
04020 TCP DCICSTS DAN
05000 TCP * DARN 05000-05001
UNRSV UDP * FI GENERIC
00514 UDP SYSLOGD1 DA
04020 UDP OMVS DAB
BindSpecific: 9.67.43.70
04022 UDP * DAB
BindSpecific: 1::8
04030 UDP * DA
05000 UDP MUD DAR 05000-05002
Display the following port reservation information defined in the PORT or PORTRANGE profile statements. For more information about each field, see the PORT or PORTRANGE profile statements in the z/OS Communications Server: IP Configuration Reference.