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