STRTCP
Démarrer TCP/IP
Start TCP/IP
En bref
La commande Démarrer TCP/IP (STRTCP) initialise et active le traitement TCP/IP, démarre les interfaces TCP/IP, démarre les travaux serveur TCP/IP et démarre les profils point à point (PTP) TCP/IP. The Start TCP/IP (STRTCP) command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, starts the TCP/IP server jobs, and starts the TCP/IP Point-To-Point (PTP) profiles.
STRTCP se lit STR
(Démarrer) + TCP.
Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.
Syntaxe minimale
STRTCP
Paramètres
-
STRSVRDémarrer les serveurs d'application Start application servers -
STRIFCDémarrer les interfaces TCP/IP Start TCP/IP interfaces -
STRPTPPRFDémarrer les profils point à point Start point-to-point profiles -
STRIP6Démarrer IPv6 Start IPv6
Astuce : dans une session 5250, tapez STRTCP 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 : Tous les environnements (*ALL)
Compatible multitâche : Sous conditions
La commande Démarrer TCP/IP (STRTCP) initialise et active le traitement TCP/IP, démarre les interfaces TCP/IP, démarre les travaux serveur TCP/IP et démarre les profils point à point (PTP) TCP/IP. Une commande STRTCP doit être émise avant tout traitement TCP/IP sur le système. Cela inclut le traitement de l'agent SNMP (Simple Network Management Protocol). The Start TCP/IP (STRTCP) command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, starts the TCP/IP server jobs, and starts the TCP/IP Point-To-Point (PTP) profiles. A STRTCP command must be issued before any TCP/IP processing can be performed on the system. This includes Simple Network Management Protocol (SNMP) agent processing.
Les interfaces TCP/IP démarrées sont celles dont le paramètre AUTOSTART a été défini à la valeur *YES à l'aide des commandes Ajouter interface TCP/IP (ADDTCPIFC) ou Modifier interface TCP/IP (CHGTCPIFC), ou de Systems Director Navigator. The TCP/IP interfaces that are started are those that have set the AUTOSTART parameter to a value of *YES using the Add TCP/IP Interface (ADDTCPIFC) or Change TCP/IP Interface (CHGTCPIFC) commands, or the Systems Director Navigator.
La commande Modifier attributs IPL (CHGIPLA) avec le paramètre STRTCP défini à la valeur *YES permet de soumettre automatiquement la commande STRTCP à la fin de l'IPL. The Change IPL Attributes (CHGIPLA) command with the STRTCP parameter set to a value of *YES can be used to automatically submit the STRTCP command at the completion of IPL.
Les travaux serveur d'application TCP/IP pouvant être démarrés sont les suivants : The TCP/IP application server jobs that can be started are:
- Bootstrap Protocol (BOOTP)
- DataLink File Manager (DLFM)
- Serveur de débogage (DBG) Debug Server (DBG)
- Services d'annuaire (DIRSRV) Directory Services (DIRSRV)
- Distributed Data Management (DDM)
- Serveur de noms de domaine (DNS) Domain Name Server (DNS)
- Domino
- Dynamic Host Configuration Protocol (DHCP)
- Extended Dynamic Remote SQL (EDRSQL)
- File Transfer Protocol (FTP)
- Hypertext Transfer Protocol (HTTP)
- Démon Internet (INETD) Internet Daemon (INETD)
- Integrated Web Application (IAS)
- Démon d'imprimante ligne (LPD) Line Printer Daemon (LPD)
- Management Central (MGTC)
- NetServer (NETSVR)
- On Demand (ONDMD)
- Protocole de routage Open Shortest Path First (OSPF) Open Shortest Path First (OSPF) Routing Protocol
- Post Office Protocol (POP)
- Qualité de service (QoS) Quality of Service (QoS)
- Exécution à distance (REXEC) Remote Execution (REXEC)
- Démon de routeur (ROUTED) Router Daemon (ROUTED)
- Service and Support Proxy (SRVSPTPRX)
- Simple Mail Transfer Protocol (SMTP)
- Agent Simple Network Management Protocol (SNMP) Simple Network Management Protocol (SNMP) agent
- Simple Network Time Protocol (NTP)
- Triggered Cache Manager (TCM)
- Trivial File Transfer Protocol (TFTP)
- Réseau privé virtuel (VPN) Virtual Private Network (VPN)
- Prise en charge de terminal virtuel (TELNET) Virtual terminal support (TELNET)
- WebFacing (WEBFACING)
La commande Démarrer TCP/IP ne démarre un travail d'application TCP/IP que si l'attribut AUTOSTART de la configuration de l'application est défini à *YES au moment où la commande est émise. Aucun travail d'application TCP/IP n'est démarré dans le sous-système QSYSWRK si l'une des conditions suivantes est vraie : The Start TCP/IP command only starts a TCP/IP application job if the AUTOSTART attribute in the application's configuration is set to *YES when the command is issued. No TCP/IP application jobs are started in the QSYSWRK subsystem if any of the following is true:
- Le programme sous licence TCP/IP n'est pas installé. The TCP/IP licensed program product is not installed.
- Toutes les applications TCP/IP ont pour valeur de l'attribut de configuration AUTOSTART *NO. All of the TCP/IP applications have an AUTOSTART configuration attribute value of *NO.
- STRSVR(*NO) est indiqué pour la commande STRTCP. Voir la description du paramètre STRSVR ci-dessous. STRSVR(*NO) is specified for the STRTCP command. See the description of the STRSVR parameter below.
Utilisez les commandes ou interfaces indiquées ci-dessous pour modifier la configuration d'une application afin qu'elle démarre automatiquement lors de l'émission de la commande Démarrer TCP/IP. Use the commands or interfaces listed below to change the configuration for an application so that it starts automatically when the Start TCP/IP command is issued.
- Pour l'agent SNMP, utilisez la commande Modifier attributs SNMP (CHGSNMPA) en indiquant AUTOSTART(*YES) For the SNMP agent use the Change SNMP Attributes (CHGSNMPA) command specifying AUTOSTART(*YES)
- Pour le serveur RouteD, utilisez la commande Modifier attributs RouteD (CHGRTDA) en indiquant AUTOSTART(*YES) For the RouteD server use the Change RouteD Attributes (CHGRTDA) command specifying AUTOSTART(*YES)
- Pour le serveur BOOTP, utilisez la commande Modifier attributs BOOTP (CHGBPA) en indiquant AUTOSTART(*YES) For the BOOTP server use the Change BOOTP Attributes (CHGBPA) command specifying AUTOSTART(*YES)
- Pour le serveur TFTP, utilisez la commande Modifier attributs TFTP (CHGTFTPA) en indiquant AUTOSTART(*YES) For the TFTP server use the Change TFTP Attributes (CHGTFTPA) command specifying AUTOSTART(*YES)
- Pour le serveur DNS, utilisez la commande Modifier attributs DNS (CHGDNSA) en indiquant AUTOSTART(*YES) For the DNS server use the Change DNS Attributes (CHGDNSA) command specifying AUTOSTART(*YES)
- Pour le serveur DHCP, utilisez la commande Modifier attributs DHCP (CHGDHCPA) en indiquant AUTOSTART(*YES) For the DHCP server use the Change DHCP Attributes (CHGDHCPA) command specifying AUTOSTART(*YES)
- Pour le serveur DDM, utilisez la commande Modifier attributs TCP/IP DDM (CHGDDMTCPA) en indiquant AUTOSTART(*YES) For the DDM server use the Modifier attributs TCP/IP DDM (CHGDDMTCPA) command specifying AUTOSTART(*YES)
- Pour l'application TELNET, utilisez la commande Modifier attributs TELNET (CHGTELNA) en indiquant AUTOSTART(*YES) For the TELNET application use the Change TELNET Attributes (CHGTELNA) command specifying AUTOSTART(*YES)
- Pour l'application FTP, utilisez la commande Modifier attributs FTP (CHGFTPA) en indiquant AUTOSTART(*YES) For the FTP application use the Change FTP Attributes (CHGFTPA) command specifying AUTOSTART(*YES)
- Pour l'application SMTP, utilisez la commande Modifier attributs SMTP (CHGSMTPA) en indiquant AUTOSTART(*YES) For the SMTP application use the Change SMTP Attributes (CHGSMTPA) command specifying AUTOSTART(*YES)
- Pour l'application LPD, utilisez la commande Modifier attributs LPD (CHGLPDA) en indiquant AUTOSTART(*YES) For the LPD application use the Change LPD Attributes (CHGLPDA) command specifying AUTOSTART(*YES)
- Pour l'application serveur HTTP, utilisez la commande Modifier attributs HTTP (CHGHTTPA) en indiquant AUTOSTART(*YES). For the HTTP server application use the Change HTTP Attributes (CHGHTTPA) command specifying AUTOSTART(*YES).
- Pour les serveurs de messagerie Post Office Protocol (POP) version 3, utilisez la commande Modifier attributs serveur de messagerie POP (CHGPOPA) en indiquant AUTOSTART(*YES) For the Post Office Protocol (POP) version 3 mail servers use the Change POP Mail Server Attributes (CHGPOPA) command specifying AUTOSTART(*YES)
- Pour l'application serveur REXEC, utilisez la commande Modifier attributs REXEC (CHGRXCA) en indiquant AUTOSTART(*YES) For the REXEC server application use the Change REXEC Attributes (CHGRXCA) command specifying AUTOSTART(*YES)
- Modifiez les attributs du serveur DBG, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change DBG server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur DIRSVR, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change DIRSVR server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur IAS, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change IAS server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur SRVSPTPRX, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change SRVSPTPRX server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du démon INETD, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change INETD daemon attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du démon MGTC, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change MGTC daemon attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur ONDMD, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change ONDMD server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur OMPROUTED, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change OMPROUTED server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs de NETSVR, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change NETSVR attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur DLFM, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change DLFM server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur EDRSQL, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change EDRSQL server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur NTP, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change NTP server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur QoS, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change QoS server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur TCM, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change TCM server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur DOMINO, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change DOMINO server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
- Modifiez les attributs du serveur WEBFACING, y compris le paramètre AUTOSTART, à l'aide de Systems Director Navigator. Change WEBFACING server attributes, including the AUTOSTART parameter, using Systems Director Navigator.
Lorsque la commande STRTCP est émise, le travail système QTCPCTL traite toutes les demandes d'activation et de désactivation des interfaces TCP/IP. When the STRTCP command is issued the QTCPCTL system job will handle all requests for activating and deactivating TCP/IP interfaces.
Remarque : La commande STRTCP n'a pas besoin d'être émise pour utiliser des applications de sockets s'exécutant sur un réseau SNA. Remarque :The STRTCP command does not need to be issued to use socket applications that run over an SNA network.
Restrictions:
- Cette commande est compatible multitâche sous condition. Elle appelle différents programmes pour traiter chaque type de serveur TCP/IP. Si les programmes appelés sont compatibles multitâche, cette commande l'est également. This command is conditionally threadsafe. This command calls different programs to process each type of TCP/IP server. If the programs being called are threadsafe, this command is threadsafe.
Paramètres
| Mot-clé | Description | Valeurs possibles | Remarques |
|---|---|---|---|
| STRSVR | Démarrer les serveurs d'applicationStart application servers | *YES, *NO | Facultatif |
| STRIFC | Démarrer les interfaces TCP/IPStart TCP/IP interfaces | *YES, *NO | Facultatif |
| STRPTPPRF | Démarrer les profils point à pointStart point-to-point profiles | *YES, *NO | Facultatif |
| STRIP6 | Démarrer IPv6Start IPv6 | *YES, *NO | Facultatif |
Démarrer les serveurs d'application (STRSVR)Start application servers (STRSVR)
Indique si les serveurs d'application TCP/IP sont ou non démarrés par la commande STRTCP. Specifies whether or not TCP/IP application servers are started by the STRTCP command.
- *YES
- La commande STRTCP démarre tous les serveurs d'application TCP/IP dont l'attribut de configuration est AUTOSTART(*YES) lors de l'activation de TCP/IP. The STRTCP command starts all TCP/IP application servers with a configuration attribute of AUTOSTART(*YES) when TCP/IP is activated.
- *NO
- La commande STRTCP ne démarre aucun serveur d'application TCP/IP lors de l'activation de TCP/IP. The STRTCP command does not start any TCP/IP application servers when TCP/IP is activated.
Remarque : Ce paramètre peut être utilisé lorsque des serveurs d'application TCP/IP utilisant AnyNet sont déjà actifs sur votre système et que vous avez l'intention d'activer également TCP/IP. STRTCP STRSVR(*NO) active le traitement TCP/IP sans démarrer de serveurs TCP/IP supplémentaires. Remarque :This parameter can be used when TCP/IP application servers using AnyNet are already active on your system and you intend to also activate TCP/IP. STRTCP STRSVR(*NO) activates TCP/IP processing without starting additional TCP/IP servers.
Lorsque TCP/IP ou AnyNet est déjà actif, utilisez la commande Démarrer serveur TCP/IP (STRTCPSVR) pour démarrer des serveurs d'application TCP/IP supplémentaires. When TCP/IP or AnyNet is already active, use the Start TCP/IP Server (STRTCPSVR) command to start additional TCP/IP application servers.
Démarrer les interfaces TCP/IP (STRIFC)Start TCP/IP interfaces (STRIFC)
Indique s'il faut ou non activer, lors de l'activation de TCP/IP, toutes les interfaces TCP/IP pour lesquelles AUTOSTART(*YES) est indiqué. Specifies whether or not to activate all TCP/IP interfaces that specify AUTOSTART(*YES) when TCP/IP is activated.
- *YES
- Lorsque la commande STRTCP est émise, le travail système QTCPWRK tente d'activer toutes les interfaces TCP/IP pour lesquelles AUTOSTART(*YES) est indiqué. When the STRTCP command is issued the QTCPWRK system job will attempt to activate all TCP/IP interfaces for which AUTOSTART(*YES) is specified.
- *NO
- Le paramètre d'interface AUTOSTART(*YES) est ignoré. Aucune interface TCP/IP n'est démarrée automatiquement. The AUTOSTART(*YES) interface parameter will be ignored. No TCP/IP interfaces will be automatically started.
Remarque : L'indication de STRIFC(*NO) inhibe uniquement l'activation des interfaces TCP/IP. Elle n'a aucun effet sur les interfaces des autres protocoles AnyNet, tels que IP sur SNA ou IP sur IPX. Remarque :Specifying STRIFC(*NO) only inhibits the activation of TCP/IP interfaces. It has no effect on interfaces for other AnyNet protocols such as IP over SNA or IP over IPX.
Démarrer les profils point à point (STRPTPPRF)Start point-to-point profiles (STRPTPPRF)
Indique s'il faut ou non activer, lors de l'activation de TCP/IP, tous les profils point à point dont l'attribut de configuration est AUTOSTART(*YES). Specifies whether or not to activate all point-to-point profiles that specify a configuration attribute of AUTOSTART(*YES) when TCP/IP is activated.
- *YES
- Lors de l'exécution de la commande STRTCP, la commande Démarrer TCP/IP point à point (STRTCPPTP) est également exécutée. La commande STRTCPPTP tente de démarrer tous les profils point à point dont l'attribut de configuration est AUTOSTART(*YES). As part of the running of the STRTCP command, the Start Point-to-Point TCP/IP (STRTCPPTP) command will also be run. The STRTCPPTP command will attempt to start all of the point-to-point profiles with a configuration attribute of AUTOSTART(*YES).
- *NO
- La commande STRTCPPTP n'est pas exécutée. The STRTCPPTP command will not be run.
Démarrer IPv6 (STRIP6)Start IPv6 (STRIP6)
Indique s'il faut ou non activer la partie IPv6 de la pile de protocoles TCP/IP. Specifies whether or not to activate the IPv6 portion of the TCP/IP protocol stack.
- *YES
- Lors de l'exécution de la commande STRTCP, la partie IPv6 de la pile de protocoles TCP/IP est démarrée. Si STRIFC(*YES) est indiqué, une tentative est faite pour démarrer toutes les lignes IPv6 et toutes les interfaces IPv6 dont l'attribut de configuration est AUTOSTART(*YES). As part of the running of the STRTCP command, the IPv6 portion of the TCP/IP protocol stack will be started. If STRIFC(*YES) is specified, then an attempt will be made to start all of the IPv6 lines and IPv6 interfaces with a configuration attribute of AUTOSTART(*YES).
- *NO
- Le protocole IPv6 n'est pas démarré. The IPv6 protocol will not be started.
Exemples
Exemple 1 : Démarrer TCP/IP Example 1: Starting TCP/IP
STRTCP
Cette commande initialise et active le traitement TCP/IP, démarre les interfaces TCP/IP et démarre les travaux serveur TCP/IP. This command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, and starts the TCP/IP server jobs.
Exemple 2 : Démarrer TCP/IP et les serveurs TCP/IP Example 2: Starting TCP/IP and TCP/IP Servers
STRTCP STRSVR(*YES)
*YES étant la valeur par défaut du paramètre STRSVR, l'émission de cette commande produit le même résultat que l'exemple 1. Because *YES is the default value for the STRSVR parameter, the result of issuing this command is identical to the Example 1.
Exemple 3 : Démarrer TCP/IP sans les serveurs TCP/IP Example 3: Starting TCP/IP But Not the TCP/IP Servers
STRTCP STRSVR(*NO)
Cette commande démarre le traitement TCP/IP sans démarrer aucun des travaux serveur d'application TCP/IP. This will start TCP/IP processing without starting any of the TCP/IP application server jobs.
Exemple 4 : Démarrer TCP/IP à l'état restreint Example 4: Starting TCP/IP in Restricted State
STRTCP STRSVR(*NO) STRIFC(*NO) STRPTPPRF(*NO) STRIP6(*YES)
Cette commande démarre le traitement TCP/IP (IPv4 et IPv6), même si le système est à l'état restreint. Les serveurs d'application TCP/IP et les interfaces IP ne sont pas démarrés. This will start TCP/IP processing (both IPv4 and IPv6), even if the system is in restricted state. TCP/IP application servers and IP interfaces will not be started.
Exemple 5 : Démarrer TCP/IP sans démarrer le traitement IPv6 Example 5: Starting TCP/IP without starting IPv6 processing
STRTCP STRSVR(*YES) STRIFC(*YES) STRPTPPRF(*YES) STRIP6(*NO)
Cette commande initialise et active le traitement TCP/IP (IPv4 uniquement) et démarre les interfaces TCP/IP (IPv4 uniquement) dont le paramètre AUTOSTART est défini à *YES. Elle démarre les serveurs TCP/IP dont le paramètre AUTOSTART est défini à *YES. Elle démarre les profils point à point dont le paramètre AUTOSTART est défini à *YES. This command initializes and activates TCP/IP processing (IPv4 only), starts the TCP/IP interfaces (IPv4 only) that have the AUTOSTART parameter set to *YES. Starts the TCP/IP servers that have the AUTOSTART parameter set to *YES. Starts the Point to Point profiles that have the AUTOSTART parameter set to *YES.
Messages d'erreur
Messages *ESCAPE *ESCAPE Messages
- CPF9848
- Ouverture du membre &3 du fichier &1 de &2 impossible.
- CPF9849
- Erreur lors du traitement du membre &3 de &1 dans &2.
- TCP1A12
- Une erreur s'est produite lors de la soumission du travail d'interface. Error occurred submitting interface job.
- TCP1A14
- Une erreur s'est produite lors du démarrage des serveurs TCP/IP. Error occurred starting TCP/IP servers.
- TCP1A77
- &1 s'est terminé correctement ; toutefois, des erreurs se sont produites. &1 completed successfully; however errors occurred.
- TCP1D03
- La longueur d'enregistrement du membre &1 est incorrecte. &1 member record length not correct.
- TCP1D04
- Une erreur s'est produite lors du traitement du membre &1 de &2/&3. Error occurred processing member &1 of &2/&3.
- 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.