Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | Option | *SELECT, *IFC, *RTE, *CNN | Optional, Positional 1 |
Top |
Specifies which TCP/IP status information you want to work with.
Top |
Example 1: Displaying the Work with TCP/IP Network Status Menu
WRKTCPSTS -or- WRKTCPSTS OPTION(*SELECT)
Either of these commands will display 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 panel.
Example 3: Using a Positional Parameter
WRKTCPSTS *RTE
The OPTION parameter is a positional parameter. The OPTION keyword is not required. This command starts NETSTAT, and the Display TCP/IP Route Information panel is shown.
Top |
*ESCAPE Messages
Top |