VARY TCPIP PKTTRACE

Set up packet tracing:

Read syntax diagramSkip visual syntax diagram
>>-Vary --TCPIP--,--+----------+-------------------------------->
                    '-procname-'   

>--,--PKTtrace--+-------------+--------------------------------><
                '-| Command |-'   

Command

                                                .-----------------------------.           
                                                V                             | (1) (2)   
|--,--+---------------------------+--+-ON----+----+-------------------------+-+----------|
      +-LINKName--=--*--,---------+  +-OFF---+    +-| Packet Length |-------+             
      +-LINKName--=--link_name--,-+  '-CLEAR-'    +-| Protocol Type |-------+             
      +-INTFName--=--*--,---------+               +-| Packet Dest Address |-+             
      '-INTFName--=--intf_name--,-'               +-| Packet Source Port |--+             
                                                  +-| Packet Dest Port |----+             
                                                  +-| Packet Port Number |--+             
                                                  '-| Packet Discard Code |-'             

Packet Length

   .-,FULL-------------------------.   
|--+-------------------------------+----------------------------|
   |          .-=--200-----------. |   
   '-,ABBREV--+------------------+-'   
              '-=--abbrev_length-'     

Protocol Type

   .-,PROT--=--*---------------.   
|--+---------------------------+--------------------------------|
   +-,PROT--=--TCP-------------+   
   +-,PROT--=--UDP-------------+   
   +-,PROT--=--ICMP------------+   
   +-,PROT--=--ICMPV6----------+   
   '-,PROT--=--protocol_number-'   

Packet Dest Address

   .-,IPaddr--=--*---------------------------------------------.   
|--+-----------------------------------------------------------+--|
   |                           .-,SUBNet--=--255.255.255.255-. |   
   +-,IPaddr--=--ipv4_address--+-----------------------------+-+   
   |                           +-,SUBNet--=--subnet_mask-----+ |   
   |                           '-/num_mask_bits--------------' |   
   |                           .-/128----------.               |   
   '-,IPaddr--=--ipv6_address--+---------------+---------------'   
                               '-/prefixLength-'                   

Packet Source Port

   .-,SRCPort--=--*-----------.   
|--+--------------------------+---------------------------------|
   '-,SRCPort--=--source_port-'   

Packet Dest Port

   .-,DESTport--=--*----------------.   
|--+--------------------------------+---------------------------|
   '-,DESTport--=--destination_port-'   

Packet Port Number

   .-,PORTNUM--=--*-----------.   
|--+--------------------------+---------------------------------|
   '-,PORTNUM--=--port_number-'   

Packet Discard Code

   .-DISCard=NONE--------.   
|--+---------------------+--------------------------------------|
   +-DISCard=*-----------+   
   +-DISCard=ALL---------+   
   '-DISCard=reason_code-'   

Notes:
  1. Each option can be specified only once. The order of options is not important.
  2. The MVS™ TRACE command must also be issued for component SYSTCPDA to activate the packet trace. See the z/OS Communications Server: IP Diagnosis Guide for details.