gtpo1meyOperations

ZSOCK-TCP/IP Network Tools

Use this command to do the following:

Requirements and Restrictions

Format




DISPlay
displays TCP/IP native stack support control block information.

FORMAT
formats the requested information for display.

LIP-lipaddr
specifies a local IP address, where lipaddr is the numeric IP address. Do not enter the following IP addresses for this parameter:

LPORT-lport
specifies a local port number, where lport is a decimal number from 1 to 65 535.

RIP-ripaddr
specifies a remote IP address, where ripaddr is the numeric IP address of the remote server. Do not enter the following IP addresses for this parameter:

RPORT-rport
specifies a remote port number, where rport is a decimal number from 1 to 65 535.

PROTOcol-prot
specifies the protocol of a socket descriptor, where prot is one of the following protocols:

ICMP
Internet Control Message Protocol

IP
Internet Protocol

RAW
Raw Internet Protocol

TCP
Transmission Control Protocol

UDP
User Datagram Protocol

SOCKet-socknum
specifies a socket descriptor, where socknum is the 6- to 8-digit hexadecimal socket descriptor.

CONVert
finds the specified socket descriptor or the corresponding socket descriptor that matches the selection criteria and displays the socket descriptor with the socket control block values for all the possible selection criteria.

INACT
deactivates a specific socket or all sockets that have matching values for all the specified selection criteria.

SUMmary
displays a summary table of all socket descriptors matching the specified selection criteria.

DATAFLOW
displays the number of bytes sent and received across an individual TCP/IP socket in a 5-second interval. The DATAFLOW parameter is used only for User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) sockets.

Additional Information

Online help information is available for this command. To display the help information, enter one of the following:

ZSOCK HELP

ZSOCK ?

Examples

The following example displays formatted socket information based on a specified socket descriptor.

+--------------------------------------------------------------------------------+
|User:   ZSOCK DISP FORMAT SOCK-C0001F                                           |
|                                                                                |
|System: SOCK0010I 10.45.54 SOCKET CONTENTS FORMATTED                            |
|        LOCAL IP  -    9.117.236.131 LOCAL PORT  -   1025                       |
|        REMOTE IP -    9.117.241.140 REMOTE PORT -   9999                       |
|        PROTOCOL - TCP               SOCKET TYPE - STREAM                       |
|        SOCKET DESCRIPTOR - 00C0001F _                                          |
|        NON BLOCKING MODE - N        SEND WINDOW BLOCKED - N                    |
|        AOR PENDING - N              CLOSE ISSUED - N                           |
|        SEND BUFF SIZE -     131072  SEND BUFF IN USE -        100              |
|        RECV BUFF SIZE -     131072  RECV BUFF IN USE -          0              |
|        NEXT SEND SEQ  - 2821439565  LAST ACKED SEQ   - 2821439465              |
|        NEXT RECV SEQ  - 2821570925  MAX PACKET SIZE  -       1492              |
|        WINDOW SCALE   -          4  SEND WINDOW SIZE -     131072              |
|        STATE - ESTABLISHED          AVG ROUND TRIP       0.273818              |
|        FIRST HOP IP   - 9.117.241.140                                          |
|        END OF DISPLAY                                                          |
|	                                                                               |
+--------------------------------------------------------------------------------+

The following example displays unformatted socket information based on a specified socket descriptor.

+--------------------------------------------------------------------------------+
|User:   ZSOCK DISPLAY SOCKET-c0001F                                             |
|                                                                                |
|System: SOCK0011I 10.46.17 SOCKET CONTENTS                                      |
|                                                                                |
|        0BD9B238- 00000000 00000000 00000000 00C0001F ........ ........         |
|        0BD9B248- 00000000 00000000 00000000 0975EC83 ........ .......c         |
|        0BD9B258- 00000000 00000000 00000000 0975F18C ........ ......1.         |
|        0BD9B268- 0401270F 01060400 0BB140D0 0BB140D0 ........ ........         |
|        0BD9B278- 00020000 00000000 00000064 00000000 ........ ........         |
|        0BD9B288- 00000000 00000000 00020000 00000000 ........ ........         |
|        0BD9B2A8- 00000000 00000000 02009000 00000000 ........ ........         |
|        0BD9B2B8- 00000000 FF000000 FF000000 00000000 ........ ........         |
|        0BD9B2D8- 00000064 00000000 00000000 00000000 ........ ........         |
|        0BD9B2E8- 06000000 00000000 00000000 00000000 ........ ........         |
|        0BD9B2F8- 00000000 00000000 0400001E 05D40000 ........ .....M..         |
|        0BD9B308- A82BDC6D A82BDC09 00020000 A82DDD8D y.._y... ....y...         |
|        0BD9B318- 00000000 00000000 00000000 00004004 ........ ...... .         |
|        0BD9B328- 00000000 00000000 00000000 0BD9B35C ........ .....R.*         |
|        0BD9B338- 00049920 00000000 00000000 00000000 ..r..... .......c         |
|        0BD9B358- 0975F18C                            ..1.                      |
|        END OF DISPLAY - ZEROED LINES NOT DISPLAYED                             |
|                                                                                |
|                                                                                |
+--------------------------------------------------------------------------------+

The following example displays formatted socket information based on a specified local IP address, remote IP address, local port and remote port.

+---------------------------------------------------------------------------------------------+
|User:   ZSOCK DISP FORMAT LIP-9.117.241.12 RIP-9.117.241.140 LPORT-1031 RPORT-9999           |
|                                                                                             |
|System: SOCK0010I 10.47.15 SOCKET CONTENTS FORMATTED                                         |
|        LOCAL IP  -    9.117.236.130 LOCAL PORT  -    9999                                   |
|        REMOTE IP -    9.117.241.140 REMOTE PORT -    1025                                   |
|        PROTOCOL - TCP               SOCKET TYPE - STREAM                                    |
|        SOCKET DESCRIPTOR - 00C00021 _                                                       |
|        NON BLOCKING MODE - N        SEND WINDOW BLOCKED - N                                 |
|        AOR PENDING - N              CLOSE ISSUED - N                                        |
|        SEND BUFF SIZE -     131072  SEND BUFF IN USE -        100                           |
|        RECV BUFF SIZE -     131072  RECV BUFF IN USE -          0                           |
|        NEXT SEND SEQ  - 2843729236  LAST ACKED SEQ   - 2843729136 _                         |
|        NEXT RECV SEQ  - 2843569842  MAX PACKET SIZE  -       1492                           |
|        WINDOW SCALE   -          4  SEND WINDOW SIZE -     131072                           |
|        STATE - ESTABLISHED          AVG ROUND TRIP  -  0.182410                             |
|        FIRST HOP IP -   9.117.241.140                                                       |
|        END OF DISPLAY                                                                       |
|                                                                                             |
+---------------------------------------------------------------------------------------------+

The following example converts socket information based on a specified local IP address, remote IP address, local port and remote port.

+--------------------------------------------------------------------------------+
|User:   ZSOCK CONV LIP-9.117.236.130 RIP-9.117.241.140 LPORT-9999 RPORT-1065    |
|                                                                                |
|System: SOCK0019I 10.47.45 BEGIN CONVERT DISPLAY                                |
|        LOCAL IP  -    9.117.236.130   LOCAL PORT  -   9999                     |
|        REMOTE IP -    9.117.241.140   REMOTE PORT -   1025                     |
|        SOCKET DESCRIPTOR - 00C00021                                            |
|        PROTOCOL - TCP                                                          |
|        END OF DISPLAY                                                          |
+--------------------------------------------------------------------------------+

The following example displays a summary report of sockets based on a specified protocol.

+---------------------------------------------------------------------------------------------+
|User:   ZSOCK SUM PROTO-TCP                                                                  |
|                                                                                             |
|System: SOCK0021I 10.45.14 SOCKET SUMMARY INFORMATION                                        |
|        SOCKET     LOCAL          LOCAL   REMOTE        REMOTE    PROT   STATE               |
|         DESC       IP             PORT     IP           PORT                                |
|                                                                                             |
|        00C0001E                   9999                            TCP    LISTEN             |
|        00C0001F   9.117.236.131   1025   9.117.241.140   9999     TCP    ESTABLI            |
|        00C00020   9.117.241.139   9999   9.117.241.140   1024     TCP    ESTABLI            |
|        00C00021   9.117.236.130   9999   9.117.241.140   1025     TCP    ESTABLI            |
|        SUMMARY TOTAL        4                                                               |
|        END OF DISPLAY                                                                       |
+---------------------------------------------------------------------------------------------+

The following example deactivates sockets based on a specific remote port.

+--------------------------------------------------------------------------------+
|User:   ZSOCK INACT RPORT-1025                                                  |
|                                                                                |
|System: SOCK0018I 10.48.18 INACT COMPLETE,    1 SOCKETS CLOSED+                 |
+--------------------------------------------------------------------------------+

The following example displays the data flow statistics of a socket descriptor.

+---------------------------------------------------------------------------------------------+
|User:   ZSOCK DATAFLOW SOCK-C00031                                                           |
|                                                                                             |
|System: SOCK0024I 10.47.34 BEGIN PROCESSING SOCKET DATAFLOW STATISTICS                       |
|        CSMP0097I 10.47.39 CPU-B SS-BSS SSU-HPN IS-01                                        |
|        SOCK0025I 10.47.39 SOCKET DATAFLOW STATISTICS FOR A 5-SECOND INTERVAL                |
|        SOCKET DESCRIPTOR-C00031                                                             |
|               BYTES SENT      - 23430                                                       |
|               BYTES RECEIVED  -     0                                                       |
|        END OF ZSOCK DATAFLOW SOCKET DISPLAY                                                 |
|                                                                                             |
+---------------------------------------------------------------------------------------------+

Related Information

None.