Displays the IPv4 routing information that this stack uses when it determines what addresses it can communicate with and over which links and first hops the communication takes place. The routes in the stack routing table can be static routes (those defined in the TCP/IP profile), routes learned from routing daemons, and routes learned by other ICMP information, such as redirects. If there is not a route that covers the destination IP address and if there is no DEFAULT route defined, then this stack cannot communicate with that destination. Multiple routes to the same destination, referred to as multipath routes, are also displayed. If multipath is not enabled on the IPCONFIG statement, then the first active route to the destination is always used.
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.
The IPAddr/-I filter value can be a complete string or a partial string using wildcard characters. A wildcard character can be an asterisk (*), which matches a null string or any character or character string, at the same position. A wildcard character can be a question mark (?), which matches any single character at the same position. For example, a string "searchee" matches with "*ar?he*", but the string "searhee" does not match with "*ar?he*". If you want to use the wildcard character on the IPAddr/-I filter, you must specify the value in the ipaddr format. The wildcard character is not accepted for the ipaddr/subnetmask format of IPAddr/-I values.
When you use z/OS UNIX netstat/onetstat command in a z/OS UNIX shell environment, take care if you use a z/OS UNIX MVS special character in a character string. It might cause an unpredictable result. To be safe, if you want to use a z/OS UNIX MVS special character in a character string, surround the character string with single (') or double (") quotation marks. For example, to use an asterisk (*) in the IP address, 10.*.0.0 for the -I filter, issue the command as: netstat -g -I '10.*.0.0' or netstat -g -I "10.*.0.0".
NETSTAT GATE
Display the routing information the default stack will use when it determines what
addresses it can communicate with and over which links/interfaces and first hops the
communication will take place.
NETSTAT GATE TCP TCPCS6
Display the routing information the TCPCS6 stack will use when it determines what
addresses it can communicate with and over which links/interfaces and first hops the
communication will take place.
NETSTAT GATE TCP TCPCS8 (IPADDR 9.43.1.1 9.43.2.2
Display the routing information in the TCPCS8 stack whose destination address match
the specified filter IP address values.
netstat -g
netstat -g -p tcpcs6
netstat -g -p tcpcs8 -I 9.43.1.1 9.43.2.2
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 GATE
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:50:17
Known gateways:
NetAddress FirstHop Link Pkt Sz Subnet Mask Subnet Value
---------- -------- ---- ------ ----------- ------------
Default 9.67.113.1 TR1 576 <none>
9.67.1.9 <direct> OSA00LIN 0 HOST
9.0.0.0 <direct> TR1 576 0.255.255.128 0.67.113.0
9.67.113.43 <direct> TR1 17914 HOST
127.0.0.1 <direct LOOPBACK 65535 HOST
198.11.25.104 198.11.22.109 LMCH2IT2 26624 HOST
201.2.10.31 <direct> VIPLC902 65535 HOST
NETSTAT GATE DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:50:17
Known gateways:
NetAddress FirstHop Link Pkt Sz Subnet Mask Subnet Value
---------- -------- ---- ------ ----------- ------------
Default 9.67.113.1 TR1 576 <none>
Metric: 00000000 Flags: UHS
MVS Specific Configured parameters:
MaxReTransmitTime: 120.000 MinReTransmitTime: 0.500
RoundTripGain: 0.125 VarianceGain: 0.250
VarianceMultiplier: 2.000
.....
Restriction: Only the first eight characters of the link or interface name are displayed by this command. Issue the NETSTAT ROUTE command to display more than eight characters of the link or interface name.
The following flags are mutually exclusive: