zOS Netstat

   

Home Up

 

 

Some interesting commands:

==> NETSTAT STATS PROTOCOL TCP

Look for connections dropped by FINWAIT2

Description of FinWait2:
Waiting for a connection termination request from the remote TCP after this endpoint has sent its connection termination request. This state should normally be of short duration, but if the remote socket endpoint does not close its socket shortly after it has received information that this socket endpoint closed the connection, then it might last for some time. Excessive FIN-WAIT-2 states can indicate an error in the coding of the remote application.


==> NETSTAT AR ALL

Shows all the ARP cache on the cards


==> NETSTAT BYTEINFO IDLETIME

MVS TCP/IP NETSTAT CS V1R6 TCPIP Name: TCPIP 19:12:28
08/12/2005 MVS TCP/IP Real Time Network Monitor
User Id B Out B In LPort Foreign Socket State IdleTime
-------- ------- ------- ----- ---------------------- -------- --------
BLOCKADE 3692076 2670639 02574 10.2.10.29..3031 Establsh 00:00:09
BLOCKADE 0000000 0000000 02574 0.0.0.0..0 Listen 29:18:34
BPXOINIT 0000000 0000000 10007 0.0.0.0..0 Listen 99:59:59
CICSXX   0000000 0000000 03111 0.0.0.0..0 Listen 00:00:36
CICSXX1  0000000 0000000 03000 0.0.0.0..0 Listen 00:02:06



==> NETSTAT CL

MVS TCP/IP NETSTAT CS V1R6 TCPIP Name: TCPIP 19:23:03
Current clients:

Client: BLOCKADE
Authorization: None
Last Touched: 13:53:53

Client: BLOCKADE
Authorization: None
Last Touched: 19:22:59

Client: BPXOINIT
Authorization: None
Last Touched: 13:20:57 .....

Last touched
time For TCP, the last time one of the following events
occurred to the connection:
+ The server side receives a connection request.
+ The server side accepts the connection request.
+ Either the server or client side of a connection receives a packet.
+ Either the server or client side of a connection sends a packet.


For UDP, the last time one of the following events occurred to
the connection:

+ Either the server or client side of a connection receives a packet.
+ Either the server or client side of a connection sends a packet.



==> NETSTAT CONFIG

Shows configuration settings ... like vtamopts


==> using the drop command
__________________________________________________________________________________
| |
| | NETSTAT CONN |
| | MVS TCP/IP NETSTAT CS V1R6 TCPIP NAME: TCPCS 17:40:36 |
| | User Id Conn Local Socket Foreign Socket State |
| | ------- ---- ------------ -------------- ----- |
| | PORTMP3 00010035 0.0.0.0..2220 0.0.0.0..0 Listen |
| | TSUSER1 00010020 0.0.0.0..1027 0.0.0.0..0 Listen |
| | TSUERS2 00010043 127.0.0.1..1033 127.0.0.1..23 Establsh |
| | PORTMP3 00021002 0.0.0.0..2221 *..* UDP |
| | NETSTAT DROP 10035 |
| | Connection successfully dropped |

| | NETSTAT CONN |
| | MVS TCP/IP NETSTAT CS V1R6 TCPIP NAME: TCPCS 17:40:39 |
| | User Id Conn Local Socket Foreign Socket State |
| | ------- ---- ------------ -------------- ----- |
| | TSUSER1 00010020 0.0.0.0..1027 0.0.0.0..0 Listen |
| | TSUERS2 00010043 127.0.0.1..1033 127.0.0.1..23 Establsh |
| | PORTMP3 00021002 0.0.0.0..2221 *..* UDP |
| |

|__________________________________________________________________________________|


==> NETSTAT GATE

MVS TCP/IP NETSTAT CS V1R6 TCPIP Name: TCPIP 19:41:18
Known gateways:
NetAddress FirstHop Link Pkt Sz Subnet Mask Subnet Value
---------- -------- ---- ------ ----------- ------------
Defaultnet 10.10.10.1 GIG71 1490 <none>

Defaultnet 10.19.12.1 GIG72 1490 <none>

Defaultnet 10.10.10.1 ETH71 1490 <none>

Defaultnet 10.19.12.1 ETH72 1490 <none>

Defaultnet 10.10.10.1 ETH73 1490 <none>

Defaultnet 10.19.12.1 ETH74 1490 <none>

Defaultnet 10.10.8.1 TR1 1490 <none>

Defaultnet 10.10.8.1 TR2 1490 <none>

10.0.0.0 <direct> TR1 1490 0.255.255.0 0.2.8.0




==> NETSTAT T
# netstat -t -L TERMLU7 detail
EZZ2376I Could not determine TCPIPjobname, using default of 'INET'
MVS TCP/IP NETSTAT CS V1R6 TCPIP Name: TCPIP 16:09:22
Internal Telnet Server Status:
Conn Foreign Socket State BytesIn BytesOut ApplName LuName
---- -------------- ----- ------- -------- -------- ------
00000433 10.155.238.93..4463 Establsh 00070884 00347166 OMVIEW H@SDK7
#

 

 

Order a book or two today - you can download an eBook today for only $1.99!

            

Just click on a book to learn more!