Displays TCP/IP statistics for IP, ICMP, TCP, and UDP protocols. You can use the PROTOCOL filter to display statistics for only a specific protocol.
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 STATS
Provides TCP/IP statistics for IP, ICMP, TCP and UDP protocols.
NETSTAT STATS PROTOCOL IP
Provides TCP/IP statistics for IP protocol. If the stack is IPv6-enabled, then the
statistics for IPv6 protocol are also displayed.
NETSTAT STATS PROTOCOL ICMP
Provides TCP/IP statistics for ICMP protocol. If the stack is IPv6-enabled, then
the statistics for ICMPv6 protocol are also displayed.
NETSTAT STATS PROTOCOL TCP
Provides TCP/IP statistics for TCP protocol. If the stack is enabled for SMC-R,
then the statistics for SMC-R are also displayed.
NETSTAT STATS PROTOCOL UDP
Provides TCP/IP statistics for UDP protocol.
netstat -S
netstat -S PROTOCOL IP
netstat -S PROTOCOL ICMP
netstat -S PROTOCOL TCP
netstat -S PROTOCOL UDP
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 STATS
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
IP Statistics
Packets Received = 25164
Inbound Calls from Device Layer = 12241
Inbound Frame Unpacking Errors = 0
Inbound Discards Memory Shortage = 0
Received Header Errors = 0
Received Address Errors = 4961
Datagrams Forwarded = 067
Unknown Protocols Received = 0
Received Packets Discarded = 3
Received Packets Delivered = 20203
Output Requests = 8773
Output Discards No Route = 0
Output Discards DLC Sync Errors = 0
Output Discards DLC Async Errors = 0
Output Discards Memory Shortage = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 12490
Outbound Packets handled by zIIP = 4912
ICMP Statistics
Received Sent
-------- ----
Messages 1366 7
Errors 0 0
Destination Unreachable 1359 0
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenchs 0 0
Redirects 0 0
Echos 7 0
Echo Replies 0 7
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
TCP Statistics
Current Established Connections = 11
Current Stalled Connections = 0
Current Servers In Connection Flood = 0
Active Connections Opened = 122
Passive Connections Opened = 7
Connections Closed = 78
Established Connections Dropped = 8
Connection Attempts Dropped = 4
Connection Attempts Discarded = 2
Timewait Connections Reused = 0
Segments Received = 10900
Header Prediction Ok for ACK = 1643
Header Prediction Ok for Data = 3213
Duplicate ACKs = 134
Discards for Bad Checksum = 0
Discards for Bad Header Length = 0
Discards for Data too Short = 9
Discards for Old Timestamp = 2
Segments Completely Duplicate = 23
Segments Partially Duplicate = 4
Segments Completely After Window = 0
Segments Partially After Window = 0
Segments Out of Order = 43
Segments Received After Close = 2
Window Probes Received = 5
Window Updates Received = 9
Segments Received on OSA Bulk Queues= 9
Segments Sent = 8382
Window Updates Sent = 723
Delayed ACKs Sent = 43
Resets Sent = 4
Segments Retransmitted = 21
Retransmit Timeouts = 0
Connections Dropped by Retransmit = 0
Path MTU Discovery Retransmits = 0
Path MTU Beyond Retransmit Limit = 0
Window Probes Sent = 2
Connections Dropped during Probe = 0
KeepAlive Probes Sent = 0
Connections Dropped by KeepAlive = 0
Connections Dropped by Finwait2 = 0
Configured Ephemeral Ports = 200
Configured Ephemeral Ports In Use = 5
Configured Ephemeral Ports Max Usage= 5
Ephemeral Ports Exhausted = 0
SMCR Statistics
Current Established SMC Links = 2
SMC Link Activation Time Outs = 0
Active SMC Links Opened = 4
Passive SMC Links Opened = 0
SMC Links Closed = 2
Current Established Connections = 1
Active Connections Opened = 1
Passive Connections Opened = 0
Connections Closed = 0
Segments Received = 1
Segments Sent = 1
Resets Sent = 0
Resets Received = 0
UDP Statistics
Datagrams Received = 6984
No Port Errors = 2312
Receive Errors = 0
Datagrams Sent = 368
Configured Ephemeral Ports = 200
Configured Ephemeral Ports In Use = 6
Configured Ephemeral Ports Max Usage= 7
Ephemeral Ports Exhausted = 0
NETSTAT STATS PROTOCOL IP
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
IP Statistics
Packets Received = 25164
Inbound Calls from Device Layer = 12241
Inbound Frame Unpacking Errors = 0
Inbound Discards Memory Shortage = 0
Received Header Errors = 0
Received Address Errors = 4961
Datagrams Forwarded = 067
Unknown Protocols Received = 0
Received Packets Discarded = 3
Received Packets Delivered = 20203
Output Requests = 8773
Output Discards No Route = 0
Output Discards DLC Sync Errors = 0
Output Discards DLC Async Errors = 0
Output Discards Memory Shortage = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 12490
Outbound Packets handled by zIIP = 4912
NETSTAT STATS PROTOCOL ICMP
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
ICMP Statistics
Received Sent
-------- ----
Messages 1366 7
Errors 0 0
Destination Unreachable 1359 0
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenchs 0 0
Redirects 0 0
Echos 7 0
Echo Replies 0 7
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
NETSTAT STATS
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
IP Statistics (IPv4)
Packets Received = 34
Received Header Errors = 0
Received Address Errors = 3
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 3
Received Packets Delivered = 46
Output Requests = 31
Output Discards No Route = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 12490
Outbound Packets handled by zIIP = 4912
IPv6 Statistics
Packets Received = 0
Received Header Errors = 0
Received Address Errors = 0
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 0
Received Packets Delivered = 0
Output Requests = 0
Output Discards No Route = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 0
Outbound Packets handled by zIIP = 0
IP General Statistics
Inbound Calls from Device Layer = 91
Inbound Frame Unpacking Errors = 0
Inbound Discards Memory Shortage = 0
Output Discards DLC Sync Errors = 0
Output Discards DLC Async Errors = 0
Output Discards Memory Shortage = 0
ICMP Statistics (IPV4)
Received Sent
-------- ----
Messages 12 12
Errors 0 12
Destination Unreachable 12 12
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenchs 0 0
Redirects 0 0
Echos 0 0
Echo Replies 0 0
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
ICMPv6 Statistics
Received Sent
-------- ----
Messages 0 4
Errors 0 0
Destination Unreachable 0 0
Time Exceeded 0 0
Parameter Problems 0 0
Redirects 0 0
Echos 0 0
Echo Replies 0 0
Administratively Prohibited 0 0
Packet Too Big 0 0
Router Solicitations 0 0
Router Advertisements 0 0
Neighbor Solicitations 0 0
Neighbor Advertisements 0 0
Group Membership Queries 0 0
Group Membership Responses 0 4
Group Membership Reductions 0 0
TCP Statistics
Current Established Connections = 2
Current Stalled Connections = 0
Current Servers In Connection Flood = 0
Active Connections Opened = 1
Passive Connections Opened = 1
Connections Closed = 0
Established Connections Dropped = 0
Connection Attempts Dropped = 0
Connection Attempts Discarded = 0
Timewait Connections Reused = 0
Segments Received = 6
Header Prediction Ok for ACK = 0
Header Prediction Ok for Data = 2
Duplicate ACKs = 0
Discards for Bad Checksum = 0
Discards for Bad Header Length = 0
Discards for Data too Short = 0
Discards for Old Timestamp = 0
Segments Completely Duplicate = 0
Segments Partially Duplicate = 0
Segments Completely After Window = 0
Segments Partially After Window = 0
Segments Out of Order = 0
Segments Received After Close = 0
Window Probes Received = 0
Window Updates Received = 0
Segments Received on OSA Bulk Queues= 9
Segments Sent = 7
Window Updates Sent = 0
Delayed ACKs Sent = 2
Resets Sent = 0
Segments Retransmitted = 0
Retransmit Timeouts = 0
Connections Dropped by Retransmit = 0
Path MTU Discovery Retransmits = 0
Path MTU Beyond Retransmit Limit = 0
Window Probes Sent = 0
Connections Dropped during Probe = 0
KeepAlive Probes Sent = 0
Connections Dropped by KeepAlive = 0
Connections Dropped by Finwait2 = 0
Configured Ephemeral Ports = 200
Configured Ephemeral Ports In Use = 5
Configured Ephemeral Ports Max Usage= 5
Ephemeral Ports Exhausted = 0
SMCR Statistics
Current Established SMC Links = 2
SMC Link Activation Time Outs = 0
Active SMC Links Opened = 4
Passive SMC Links Opened = 0
SMC Links Closed = 2
Current Established Connections = 1
Active Connections Opened = 1
Passive Connections Opened = 0
Connections Closed = 0
Segments Received = 1
Segments Sent = 1
Resets Sent = 0
Resets Received = 0
UDP Statistics
Datagrams Received = 0
No Port Errors = 12
Receive Errors = 0
Datagrams Sent = 12
Configured Ephemeral Ports = 200
Configured Ephemeral Ports In Use = 6
Configured Ephemeral Ports Max Usage= 7
Ephemeral Ports Exhausted = 0
NETSTAT STATS PROTOCOL IP
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
IP Statistics (IPv4)
Packets Received = 34
Received Header Errors = 0
Received Address Errors = 3
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 3
Received Packets Delivered = 46
Output Requests = 31
Output Discards No Route = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 12490
Outbound Packets handled by zIIP = 4912
IPv6 Statistics
Packets Received = 0
Received Header Errors = 0
Received Address Errors = 0
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 0
Received Packets Delivered = 0
Output Requests = 0
Output Discards No Route = 0
Output Discards (other) = 0
Reassembly Timeouts = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
Inbound Packets handled by zIIP = 0
Outbound Packets handled by zIIP = 0
IP General Statistics
Inbound Calls from Device Layer = 91
Inbound Frame Unpacking Errors = 0
Inbound Discards Memory Shortage = 0
Output Discards DLC Sync Errors = 0
Output Discards DLC Async Errors = 0
Output Discards Memory Shortage = 0
NETSTAT STATS PROTOCOL ICMP
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 15:14:15
ICMP Statistics (IPV4)
Received Sent
-------- ----
Messages 12 12
Errors 0 12
Destination Unreachable 12 12
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenchs 0 0
Redirects 0 0
Echos 0 0
Echo Replies 0 0
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
ICMPv6 Statistics
Received Sent
-------- ----
Messages 0 4
Errors 0 0
Destination Unreachable 0 0
Time Exceeded 0 0
Parameter Problems 0 0
Redirects 0 0
Echos 0 0
Echo Replies 0 0
Administratively Prohibited 0 0
Packet Too Big 0 0
Router Solicitations 0 0
Router Advertisements 0 0
Neighbor Solicitations 0 0
Neighbor Advertisements 0 0
Group Membership Queries 0 0
Group Membership Responses 0 4
Group Membership Reductions 0 0
Most of the TCP/IP statistics for IP, ICMP, TCP, and UDP protocols are defined in the SNMP IP-MIB (RFC2011 - SNMPv2 Management Information Base for the Internet Protocol Using SMIv2), TCP-MIB (RFC 2012 - SNMPv2 Management Information Base for the Transmission Control Protocol Using SMIv2), and UDP-MIB (RFC 2013 - SNMPv2 Management Information Base for the User Datagram Protocol Using SMIv2) MIB modules. See these SNMP MIB modules for more detailed information.