Aller au contenu

WRKTCPSTS

Gérer état réseau TCP/IP

Work with TCP/IP Network Sts

En bref

La commande Gestion de l'état du réseau TCP/IP (WRKTCPSTS), également appelée NETSTAT, permet d'obtenir des informations sur l'état des routes du réseau TCP/IP, des interfaces, des connexions TCP et des ports UDP de votre système local. 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.

WRKTCPSTS se lit WRK (Gérer) + TCPSTS. Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.

Syntaxe minimale

WRKTCPSTS

Paramètres

Astuce : dans une session 5250, tapez WRKTCPSTS puis F4 pour l'invite de saisie, et F1 sur un paramètre pour son aide.

Aide IBM i de la commande

Texte du F1, IBM i 7.5 en français (bibliothèque QSYS)

Où s'exécute : Environnements interactifs (*INTERACT *IPGM *IREXX *EXEC)
Compatible multitâche : Non

La commande Gestion de l'état du réseau TCP/IP (WRKTCPSTS), également appelée NETSTAT, permet d'obtenir des informations sur l'état des routes du réseau TCP/IP, des interfaces, des connexions TCP et des ports UDP de votre système local. Vous pouvez également utiliser NETSTAT pour arrêter des connexions TCP/IP et pour démarrer ou arrêter des interfaces TCP/IP. 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.

Si IP over SNA (IPS) est activé, NETSTAT affiche des informations sur les interfaces, les routes et les connexions IP over SNA. Vous pouvez également utiliser NETSTAT pour arrêter des connexions IP over SNA et pour démarrer ou arrêter des interfaces IP over SNA. 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.

Les vues QSYS2.NETSTAT_INFO, QSYS2.NETSTAT_INTERFACE_INFO, QSYS2.NETSTAT_JOB_INFO et QSYS2.NETSTAT_ROUTE_INFO renvoient des informations d'état. The QSYS2.NETSTAT_INFO, QSYS2.NETSTAT_INTERFACE_INFO, QSYS2.NETSTAT_JOB_INFO, and QSYS2.NETSTAT_ROUTE_INFO views return status information.

Paramètres

Mot-clé Description Valeurs possibles Remarques
OPTION Option *SELECT, *IFC, *RTE, *CNN, *IFC6, *RTE6, *CNN6, *STATUS Facultatif, positionnel 1

Option (OPTION)

Indique les informations d'état TCP/IP que vous souhaitez gérer. Specifies which TCP/IP status information you want to work with.

*SELECT
Affiche le menu Gestion de l'état du réseau TCP/IP. Display the Work with TCP/IP Network Status menu.
*IFC
Affiche la liste Gestion de l'état des interfaces IPv4. Display the Work with IPv4 Interface Status list.
*RTE
Affiche la liste Affichage des informations de route IPv4. Display the Display IPv4 Route Information list.
*CNN
Affiche la liste Gestion de l'état des connexions IPv4. Display the Work with IPv4 Connection Status list.
*IFC6
Affiche la liste Gestion de l'état des interfaces IPv6. Display the Work with IPv6 Interface Status list.
*RTE6
Affiche la liste Affichage des informations de route IPv6. Display the Display IPv6 Route Information list.
*CNN6
Affiche la liste Gestion de l'état des connexions IPv6. Display the Work with IPv6 Connection Status list.
*STATUS
Affiche les informations d'état de la pile TCP/IP. Display the Display TCP/IP Stack Status information.

Exemples

Exemple 1 : Affichage du menu Gestion de l'état du réseau TCP/IP Example 1: Displaying the Work with TCP/IP Network Status Menu

WRKTCPSTS
 -or-
WRKTCPSTS   OPTION(*SELECT)

L'une ou l'autre de ces commandes affiche le menu Gestion de l'état du réseau TCP/IP. Either of these commands will display the Work with TCP/IP Network Status menu.

Exemple 2 : Utilisation du paramètre OPTION Example 2: Using the OPTION Parameter

WRKTCPSTS   OPTION(*CNN)

Cette commande affiche l'écran Gérer l'état des connexions IPv4. This command displays the Work with IPv4 Connection Status panel.

Exemple 3 : Utilisation d'un paramètre positionnel Example 3: Using a Positional Parameter

WRKTCPSTS   *RTE6

Le paramètre OPTION est un paramètre positionnel. Le mot-clé OPTION n'est pas obligatoire. Cette commande démarre NETSTAT et l'écran Afficher les informations de route IPv6 est affiché. 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.

Messages d'erreur

Messages *ESCAPE *ESCAPE Messages

TCP2670
Impossible d'exécuter la demande. Les services TCP/IP ne sont pas disponibles. Not able to complete request. TCP/IP services are not available.
TCP3844
Les données de l'interface &3 ne sont pas disponibles. Data for interface &3 not available.
TCP3881
Les données de la liste ne sont pas disponibles. Data for list not available.
TCP3882
Les données ne sont pas disponibles. Data not available.
TCP9999
Erreur système interne dans le programme &1. Internal system error in program &1.

© Copyright IBM Corp. Texte d'aide reproduit à des fins de formation.