DCMT DISPLAY TCP/IP Command

The DCMT DISPLAY TCP/IP command displays information about the TCP/IP runtime environment of a DC/UCF system. In addition to current attribute settings, it can also display TCP/IP-related statistics and a list of all the TCP/IP stacks and their corresponding status.
idmscu19
The DCMT DISPLAY TCP/IP command displays information about the TCP/IP runtime environment of a DC/UCF system. In addition to current attribute settings, it can also display TCP/IP-related statistics and a list of all the TCP/IP stacks and their corresponding status.
This article describes the following information:
Syntax
►►── DCMT ─┬───────────────────┬────────────────────────────────────────────►            └─ 
broadcast-parms
 ─┘  ►── Display ─┬─ TCP/ip ─┬──────────────────────────────────────────────────►               └─ TCPip ──┘  ►──┬─────────────────────┬───────────────────────────────────────────────┬─►◄     ├─┬─── SUMmary ◄──────┤                                               │     │ ├─┬─ STATistics ──┬─┤                                               │     │ │ └─ STATS ───────┘ │                                               │     │ ├─┬─ STACk TABle ─┬─┤                                               │     │ │ └─ STACKS ──────┘ │                                               │     │ └─── ALL ───────────┘                                               │     │                                                                     │     ├─ SERvices FILe ─┬────────────────────────────┬──────────────────────┤     │                 ├─ SORt ──┬─ BY ─┬─ NAMe ──┬─┘                      │     │                 └─ ORDer ─┘      └─ PORt ◄─┘                        │     │                                                                     │     ├─ SERvices ─┬─ NAMe 
service-name
 ──────────────────────────────────┬─┤     │            └─ PORt 
port-number
 ─┬────────────────────────────────┬┘ │     │                                 └┬─ THRough ┬─ PORt 
port-number
 ─┘  │     │                                  └─ THRU ───┘                       │     │                                                                     │     └─ SOCkets ─┬────────────────────┬──┬───────┬─────────────────────────┘                 ├─ LTErm 
lterm-id
 ───┤  └─ ALL ─┘                 └─ STAck 
stack-name
 ─┘
Parameters
  • broadcast-parms
    Specifies to execute the DCMT command on all or a list of data sharing group members.
    For more information about broadcasting and broadcast-parms, see
     
    How to Broadcast System Tasks in the Using System Tasks section
    .
  • SUMmary
    Displays summary information about this system's TCP/IP environment. This is the default if no option is specified.
  • STATistics
    Displays statistics information.
  • STACk TABle
    Displays the TCP/IP stack table containing the name of all the stacks defined in the system. The output table contains five columns that provide the following information:
    • Hostname
    • IP address
    • Name of the stack (job name), designated with (D) if it is the default stack
    • Flag indicating the following values:
      • Y -- If stack is active
      • N -- If stack is not active
      • Excl-D -- If stack is excluded by DCMT Command
      • Excl-G -- If stack is excluded by SYSGEN
      • Excl-I -- If stack is excluded by SYSIDMS
      • New -- If stack is new in the list, after the execution of a DCMT VARY TCP/IP STACK TABLE REFRESH command
    • Flag indicating if the stack supports IPv6
  • ALL
    Displays all the information provided by the SUMMARY, STATISTICS, and STACK TABLE options.
  • SERvices FILe
    Displays the contents of the services file, if one is in use. The output table contains three columns that provide the following information:
    • Port numbers
    • Protocol names
    • Service names
      Aliases, if present, are displayed on secondary lines in the service name column.
    The output table can be sorted by the service name or by the port number. By default, it is sorted by the port number.
  • SERvices NAMe or SERvices PORt
    Displays the contents of the services file, if one is in use but restricts the output to specific service names or specific port numbers.
    • service-name
      Specifies the name of a specific service or a wildcard that displays all the services with a name starting with the same pattern.
      When using the SERVICES PORT clause, you can specify a specific port number or a range of ports.
    • port-number
      Specifies a
      port-number
      .
      port-number
      is a positive number between 1 and 65535. If the THROUGH PORT sub-clause is specified, the second
      port-number
      value must be greater than or equal to the first one.
  • SOCkets LTErm or SOCkets STAck
    Displays information about all LTERM's owning sockets in the system. The output table contains six columns (no ALL option) or ten columns (with ALL option) that display the following information:
    • Without the ALL option: the LTERM name, the PTERM name, the PTERM type, the current stack affinity, the current socket function, and the total number of sockets owned by the LTERM.
    • With the ALL option specified: the LTERM name, the PTERM name, the PTERM type, and for each socket descriptor currently owned by the LTE, the stack affinity, the socket function, the socket descriptor, the socket domain, an indicator telling whether the TCP_NODELAY socket option applies, and the socket timeout value.
      When the ALL option is specified and the current socket function is SELECT or SELECTX, the name of the function is displayed for the first socket descriptor only.
Examples
DCMT DISPLAY TCP/IP SUMMARY
SYSGEN definitions                        Run-time information ======================================    ====================================== Default status                      ON    TCP/IP status                   Active Default TCP_NODELAY option         OFF    TCP_NODELAY option                 OFF Max number sockets                9999    Max number sockets                9999 Max number sockets per task        999    Max number sockets per task        999 Plugin module                 RHDCD1IP Services file                 SERVICES Services file case           Sensitive    Services file case           Sensitive Default stack                  DEFAULT    Default stack                 TCPIP31 Include stack list            TCP* SYSIDMS parameters ====================================== EXCLUDE_TCP/IP_STACK          TCPIP31V
DCMT DISPLAY TCP/IP STATISTICS
Statistics ===================================================== Number of sockets currently open                   10 Number of sockets created                          11 HWM of concurrent open sockets (global)            11 HWM of concurrent open sockets (1 LTERM)            1 Number of socket reads                             98 Number of socket writes                            64 Number of accepted connections rejected             0 Number of DDS      connections rejected             0 Number of listener connections rejected             0
DCMT DISPLAY TCP/IP STACK TABLE
Hostname  IP address       Job name    Active  IPv6 ========  ===============  =========== ======  ==== HOSTCA31  111.111.111.111  TCPIP31 (D)    Y      Y HOSTCA32  222.222.222.222  TCPIP32        Y      Y                            TCPIP33        N                            RUNTCP      Excl-G                            TCPIP31V    Excl-I
DCMT DISPLAY TCP/IP SERVICES FILE
Services file                 SERVICES Services file case           Sensitive Port#  Protocol  Service name or alias =====  ========  =====================     7     tcp    echo     7     udp    echo    13     tcp    daytime    13     udp    daytime    15     tcp    netstat    19     tcp    chargen                  ttytst                  source    19     udp    chargen                  ttytst                  source    21     tcp    ftp    23     tcp    telnet    ..     . .    . . . .
DCMT DISPLAY TCP/IP SERVICE NAME nameserv*
Services file                 SERVICES Services file case           Sensitive Port#  Protocol  Service name or alias =====  ========  =====================    42     tcp    nameserver    53     tcp    nameserver    53     udp    nameserver
DCMT DISPLAY TCP/IP SERVICE PORT 10 THROUGH 20
Services file                 SERVICES Services file case           Sensitive Port#  Protocol  Service name or alias =====  ========  =====================    13     tcp    daytime    13     udp    daytime    15     tcp    netstat    19     tcp    chargen                  ttytst                  source    19     udp    chargen                  ttytst                  source
DCMT DISPLAY TCP/IP SOCKETS
Lterm-ID Pterm-ID Type Stack    Socket-call     Count ======== ======== ==== ======== =============== ===== LD000001 *No-PTE* FRST TCPIP31                      1 SY71CA31 SY71CA31 DTCP TCPIP31  RECV   (async)      2 TCLJSRV  TCPJSRV  LIST TCPIP31  ACCEPT (async)      1 TCPLIS01 TCPLIS01 LIST TCPIP31  ACCEPT (async)      1 VL72002  VP72002  3279 TCPIP31  ACCEPT              2
DCMT DISPLAY TCP/IP SOCKETS ALL
Lterm-ID Pterm-ID Type Stack    Socket-call     Socket-desc Dom NDL Timeout ======== ======== ==== ======== =============== =========== === === ======= LD000001 *No-PTE* FRST TCPIP31                            0 IN   N  Forever SY71CA31 SY71CA31 DTCP TCPIP31  RECV                      0 IN   Y  Forever                        TCPIP31                            1 IN   N  Forever TCLJSRV  TCPJSRV  LIST TCPIP31  ACCEPT (async)            0 IN6  N  Forever TCPLIS01 TCPLIS01 LIST TCPIP31  ACCEPT (async)            0 IN6  N  Forever VL72002  VP72002  3279 TCPIP31                            0 IN   N      300                        TCPIP31  ACCEPT                    1 IN   N      300