Displays information for TN3270E Telnet server connections.
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.
.--------------. V | >>-+-APPLname------applname---+--------+----------------------->< | .----------------. | | V | | +-CLIent------clientname---+--------+ +-HOSTName--hostname----------------+ | .-----------------------. | | V | | +-IPAddr----+-ipaddr------------+-+-+ | +-ipaddr/prefixLen--+ | | '-ipaddr/subnetmask-' | | .----------------. | | V | | +-IPPort----ipaddr+portnum-+--------+ | .------------. | | V | | +-LUName------luname---+------------+ | .-------------. | | V | | '-POrt------portnum---+-------------'
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.
.----------------. V | >>-+- -B----ipaddr+portnum-+--------+-------------------------->< | .----------------. | | V | | +- -E------clientname---+--------+ +- -H--hostname------------------+ | .-----------------------. | | V | | +- -I----+-ipaddr------------+-+-+ | +-ipaddr/prefixLen--+ | | '-ipaddr/subnetmask-' | | .------------. | | V | | +- -L------luname---+------------+ | .--------------. | | V | | +- -N------applname---+----------+ | .-------------. | | V | | '- -P------portnum---+-----------'
Result: At the end of the report, Netstat displays the host name that the resolver used for the resolution and the list of IP addresses returned from the resolver that it used as filters.
Except for POrt/-P, and HOSTname/-H, the 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/prefixlen or 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 quotation marks. For example, to use an asterisk (*) in the IP address, 10.*.0.0 for the -I filter, issue the command as: netstat -t -I '10.*.0.0'.
NETSTAT TELNET
Display the status of the internal Telnet server connections in the default
TCP/IP stack.
NETSTAT TELNET TCP TCPCS6
Display the status of the internal Telnet server connections in TCPCS6 stack.
NETSTAT TELNET TCP TCPCS8 (IPADDR 9.43.1.1 9.43.2.2
Display the status of the internal Telnet server connetctions in TCPCS8 stack
whose foreign IP addresses match the specified filter IP address values.
NETSTAT TELNET (PORT 2222 6666 88
Display the status of the internal Telnet server connections in the default
TCP/IP stack whose foreign ports match the specified filter port numbers.
netstat -t
netstat -t -p tcpcs6
netstat -t -p tcpcs6 -I 9.43.1.1 9.43.2.2
netstat -t -P 2222 6666 88
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 TELNET
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 17:41:00
Internal Telnet Server Status:
Conn Foreign Socket State BytesIn BytesOut ApplName LuName
---- -------------- ----- ------- -------- -------- ------
000000F6 201.2.10.11..1034 Establsh 00000715 00007648 TSO10002 TCPM1001
000000F9 201.2.10.12..1035 Establsh 00000222 00005930 TSO10004 TCPM1002
000000FE 9.27.11.182..4665 Establsh 00000091 00000623 TSO10003 TCPM1003
NETSTAT TELNET DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 17:41:00
Internal Telnet Server Status:
Conn Foreign Socket State BytesIn BytesOut ApplName LuName
---- -------------- ----- ------- -------- -------- ------
000000F6 201.2.10.11..1034 Establsh 00000715 00007648 TSO10002 TCPM1001
ModeName: NSX32702 TnProto: TN3270 TnUserId:
000000F9 201.2.10.12..1035 Establsh 00000222 00005930 TSO10004 TCPM1002
ModeName: NSX32702 TnProto: TN3270 TnUserId:
000000FE 9.27.11.182..4665 Establsh 00000091 00000623 TSO10003 TCPM1003
ModeName: INTERACT TnProto: LINEMODE TnUserId:
where K = nnnnnnn x 1000
NETSTAT TELNET
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 11:11:25
Internal Telnet Server Status:
Conn State BytesIn BytesOut ApplName LuName
---- ----- ------- -------- -------- ------
000000F6 Establsh 0000000715 0000007648 TSO10002 TCPM1001
Foreign socket: 201.2.10.11..1034
000000F9 Establsh 0000000222 0000005930 TSO10004 TCPM1002
Foreign socket: 201.2.10.12..1035
000000FE Establsh 0000000091 0000000623 TSO10003 TCPM1003
Foreign socket: 9.27.11.182..4665
NETSTAT TELNET DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 11:11:25
Internal Telnet Server Status:
Conn State BytesIn BytesOut ApplName LuName
---- ----- ------- -------- -------- ------
000000F6 Establsh 0000000715 0000007648 TSO10002 TCPM1001
Foreign socket: 201.2.10.11..1034
ModeName: NSX32702 TnProto: TN3270 TnUserId:
000000F9 Establsh 0000000222 0000005930 TSO10004 TCPM1002
Foreign socket: 201.2.10.12..1035
ModeName: NSX32702 TnProto: TN3270 TnUserId:
000000FE Establsh 0000000091 0000000623 TSO10003 TCPM1003
Foreign socket: 9.27.11.182..4665
ModeName: INTERACT TnProto: LINEMODE TnUserId: