WRKTCPSTS (Work with TCP/IP Network Status)
WRKTCPSTS Command syntax diagram
Purpose
Use the Work with TCP/IP Network Status (WRKTCPSTS) command, also known as NETSTAT, 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.
To use this command, either the TCP/IP protocol stack or IP over SNA must be active. If neither is active, Netstat issues an escape message.
Optional Parameters
- OPTION
- Specifies one of the options below.
*SELECT: Display the Work with TCP/IP Network Status menu.
*IFC: Display the Work with TCP/IP Interface Status list. The Netstat menu is not displayed.
*RTE: Display the Display TCP/IP Route Information list. The Netstat menu is not displayed.
*CNN: Display the Work with TCP/IP Connection Status list. The Netstat menu is not displayed.
Examples for WRKTCPSTS
Example 1: Displaying the Work with TCP/IP Network Status Menu
WRKTCPSTS WRKTCPSTS OPTION(*SELECT)Either command displays the Work with TCP/IP Network Status menu.
Example 2: Using the OPTION Parameter
WRKTCPSTS OPTION(*CNN)This command displays the Work with TCP/IP Connection Status list.
Example 3: Using a Positional Parameter
WRKTCPSTS *RTEThe OPTION parameter is a positional parameter. The OPTION keyword is not required. This command starts NETSTAT, and the Display TCP/IP Route Information list is shown.
Error messages for WRKTCPSTS
*ESCAPE Messages
- TCP2670
- Not able to complete request. TCP/IP services are not available.
- TCP3844
- Data for interface &3 not available.
- TCP3881
- Data for list not available.
- TCP3882
- Data not available.
- TCP9999
- Internal system error in program &1.