Command reference / sys

WRKTCPSTS

Work with TCP/IP Network Sts

The Work with TCP/IP Network Status (WRKTCPSTS) command, also known as NETSTAT, is used to get information about the status of TCP/IP network routes, interfaces, TCP connections and UDP ports on your local system. You can also use NETSTAT to end TCP/IP connections and to start or end TCP/IP interfaces. If IP over SNA (IPS) is enabled, NETSTAT displays information about the IP over SNA interfaces, routes, and connections. You can also use NETSTAT to end IP over SNA connections and to start or end IP over SNA interfaces. The QSYS2.NETSTAT_INFO, QSYS2.NETSTAT_INTERFACE_INFO, QSYS2.NETSTAT_JOB_INFO, and QSYS2.NETSTAT_ROUTE_INFO views return status information.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 1.

Parameters

OPTION Option

Specifies which TCP/IP status information you want to work with.

Type
*CHAR
Required
No
Default
*SELECT
Length
7
Case
Uppercase

Allowed values: *SELECT, *IFC, *RTE, *CNN, *IFC6, *RTE6, *CNN6, *STATUS

*SELECT
Display the Work with TCP/IP Network Status menu.
*IFC
Display the Work with IPv4 Interface Status list.
*RTE
Display the Display IPv4 Route Information list.
*CNN
Display the Work with IPv4 Connection Status list.
*IFC6
Display the Work with IPv6 Interface Status list.
*RTE6
Display the Display IPv6 Route Information list.
*CNN6
Display the Work with IPv6 Connection Status list.
*STATUS
Display the Display TCP/IP Stack Status information.

Examples

WRKTCPSTS -or- WRKTCPSTS OPTION(*SELECT)

Displaying the Work with TCP/IP Network Status Menu. Either of these commands will display the Work with TCP/IP Network Status menu.

WRKTCPSTS OPTION(*CNN)

Using the OPTION Parameter. This command displays the Work with IPv4 Connection Status panel.

WRKTCPSTS *RTE6

Using a Positional Parameter. The OPTION parameter is a positional parameter. The OPTION keyword is not required. This command starts NETSTAT, and the Display IPv6 Route Information panel is shown.

IBM command documentation

Generated from os/cl/catalog/WRKTCPSTS.json and os/cl/help/WRKTCPSTS.json.