Aller au contenu

ENDTCPSVR

Arrêter serveur TCP/IP

End TCP/IP Server

En bref

La commande Arrêter le serveur TCP/IP (ENDTCPSVR) est utilisée pour arrêter les travaux serveur d'applications TCP/IP indiqués dans le paramètre SERVER. The End TCP/IP Server (ENDTCPSVR) command is used to end the TCP/IP application server jobs that are specified in the SERVER parameter.

ENDTCPSVR se lit END (Arrêter) + TCPSVR. Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.

Syntaxe minimale

ENDTCPSVR

Paramètres

Astuce : dans une session 5250, tapez ENDTCPSVR 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 Arrêter le serveur TCP/IP (ENDTCPSVR) est utilisée pour arrêter les travaux serveur d'applications TCP/IP indiqués dans le paramètre SERVER. Si les travaux ont des connexions actives, ces connexions sont arrêtées immédiatement. Si la commande ENDTCPSVR est utilisée pour arrêter un serveur qui n'est pas actif, un message de diagnostic peut être renvoyé. The End TCP/IP Server (ENDTCPSVR) command is used to end the TCP/IP application server jobs that are specified in the SERVER parameter. If the jobs have any current active connections, these connections are ended immediately. If the ENDTCPSVR command is used to end a server that is not active, a diagnostic message may be returned.

La commande Arrêter le serveur TCP/IP ne peut être utilisée que lorsque TCP/IP est pleinement opérationnel. Seul le serveur *VPN peut être arrêté lorsque le système est en état restreint. The End TCP/IP Server command can only be used when TCP/IP is fully operational. Only the *VPN server can be ended when the system is in restricted state.

Des serveurs supplémentaires peuvent être ajoutés automatiquement à la liste des serveurs pris en charge par ENDTCPSVR à l'aide de la commande Ajouter un serveur TCP/IP (ADDTCPSVR). Additional servers can automatically be added to the list of servers that ENDTCPSVR will support by using the Add TCP/IP Server (ADDTCPSVR) command.

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
SERVER Serveur d'applicationsServer application Valeurs uniques: *ALL
Autres valeurs (jusqu'à 300 répétitions): Valeur caractère
Facultatif, positionnel 1
HTTPSVR Serveur HTTPHTTP server Valeurs uniques: *ALL
Autres valeurs: Liste d'éléments
Facultatif
Élément 1: Server instance Nom, *ADMIN
DNSSVR Serveur DNSDNS server Valeurs uniques: *ALL
Autres valeurs: Liste d'éléments
Facultatif
Élément 1: Server instance Nom
TCMSVR Serveur TCMTCM server Valeurs uniques: *NONE
Autres valeurs: Liste d'éléments
Facultatif
Élément 1: Instance name Valeur caractère, *ALL
TOMCATSVR Serveur ASFTOMCATASFTOMCAT server Valeurs uniques: *NONE
Autres valeurs: Liste d'éléments
Facultatif
Élément 1: Server instance name Valeur caractère, *ALL
INSTANCE Instance Valeur caractère, *DFT, *ALL Facultatif

Serveur d'applications (SERVER)Server application (SERVER)

Indique le travail serveur d'applications TCP/IP à arrêter par cette commande. Specifies which of the TCP/IP application server jobs is to be ended by this command.

D'autres serveurs TCP/IP peuvent également être disponibles s'ils ont été ajoutés en exécutant la commande Ajouter un serveur TCP/IP (ADDTCPSVR). Additional TCP/IP servers could also be available if they were added by running the Add TCP/IP Server (ADDTCPSVR) command.

Pour obtenir la liste de toutes les valeurs prises en charge pour ce paramètre, vous pouvez appuyer sur F4 (Invite) pour ce paramètre lors de l'invite de cette commande. For a list of all supported values for this parameter, you can press F4 (Prompt) for this parameter when prompting this command.

Valeurs uniques

*ALL
Tous les travaux serveur TCP/IP sont arrêtés. All of the TCP/IP server jobs are ended.

Autres valeurs (jusqu'à 300 répétitions)

*BOOTP
Le serveur BOOTP (bootstrap protocol) est arrêté. The bootstrap protocol (BOOTP) server is ended.
*DBG
Le serveur de débogage est arrêté. The Debug server is ended.
*DDM
Le travail serveur DDM (Distributed Data Management) est arrêté. The Distributed Data Management (DDM) server job is ended.
*DHCP
Le travail serveur DHCP (Dynamic Host Configuration Protocol) est arrêté. The Dynamic Host Configuration Protocol (DHCP) server job is ended.
*DIRSRV
Le travail serveur des services d'annuaire LDAP (DIRSVR) est arrêté. The LDAP directory services (DIRSVR) server job is ended.
*DLFM
Le travail serveur DataLink File Manager (DLFM) est arrêté. The DataLink File Manager (DLFM) server job is ended.
*DNS
The Domain Name System (DNS) server job is ended unless:
  • Un nom d'instance de serveur précis est indiqué dans le paramètre DNSSVR. Seule l'instance indiquée est alors arrêtée. A specific server instance name is specified for the DNSSVR parameter. Then only the specified instance is ended.

Pour arrêter toutes les instances du serveur DNS, indiquez l'une des valeurs suivantes : To end all instances of the DNS server, specify one of the following:

  ENDTCPSVR   SERVER(*DNS)
  ENDTCPSVR   SERVER(*DNS)  DNSSVR(*ALL)

*DOMINO
Le serveur Lotus Domino (DOMINO) est arrêté. The Lotus Domino (DOMINO) server is ended.
*EDRSQL
Le serveur EDRSQL (Extended Dynamic Remote SQL) est arrêté. The Extended Dynamic Remote SQL (EDRSQL) server is ended.
*FTP
Tous les travaux serveur FTP (File Transfer Protocol) sont arrêtés. All File Transfer Protocol (FTP) server jobs are ended.
*HTTP
All instances of the HyperText Transfer Protocol (HTTP) server are ended unless:
  • Un nom d'instance de serveur précis est indiqué dans le paramètre HTTPSVR. Seule l'instance indiquée est alors arrêtée. A specific server instance name is specified for the HTTPSVR parameter. Then only the specified instance is ended.
  • La valeur spéciale *ADMIN est indiquée dans le paramètre HTTPSVR. Seul le serveur d'administration est alors arrêté. The *ADMIN special value is specified for the HTTPSVR parameter. Then only the administration server is ended.

Pour arrêter toutes les instances du serveur HTTP, indiquez l'une des valeurs suivantes : To end all instances of the HTTP server, specify one of the following:

  ENDTCPSVR   SERVER(*HTTP)
  ENDTCPSVR   SERVER(*HTTP)  HTTPSVR(*ALL)

Le serveur HTTP est également connu sous le nom d'IBM HTTP Server. The HTTP server is also known as the IBM HTTP Server.

*IAS
Le serveur IAS (Integrated Web Application) est arrêté. The Integrated Web Application (IAS) server is ended.
*INETD
Le serveur INETD (Internet Daemon) est arrêté. The Internet Daemon (INETD) server is ended.
*LPD
Tous les serveurs LPD (line printer daemon) sont arrêtés. All line printer daemon (LPD) servers are ended.
*MGTC
Le serveur Management Central (MGTC) est arrêté. The Management Central (MGTC) server is ended.
*NETSVR
Le serveur NetServer (NETSVR) est arrêté. The NetServer (NETSVR) server is ended.
*NTP
All Simple Network Time Protocol (SNTP) services servers are ended.

Remarque : Si les services SNTP client et serveur ont tous deux été démarrés, l'exécution de la commande ENDTCPSVR avec SERVER(*NTP) arrête à la fois les services client et serveur. Si vous souhaitez arrêter uniquement le service SNTP client ou uniquement le service SNTP serveur, vous devrez exécuter à nouveau la commande Démarrer le serveur TCP/IP (STRTCPSVR) en indiquant SERVER(*NTP) et NTPSRV(*CLIENT) ou NTPSRV(SERVER). Note: If both client and server SNTP services have been started, running the ENDTCPSVR command specifying SERVER(*NTP) will end both client and server services. If you wanted to end just the client or just the server SNTP service, you will need to run the Start TCP/IP Server (STRTCPSVR) command again, specifying SERVER(*NTP) and NTPSRV(*CLIENT) or NTPSRV(SERVER).

*OMPROUTED
Le serveur OMPROUTER Daemon (OMPROUTED) est arrêté. Les travaux serveur OSPF (Open Shortest Path First) et RIP (Routing Information Protocol) sont arrêtés. Indiquer SERVER(*OMPROUTED) et INSTANCE(*OSPF) n'arrête que le travail serveur OSPF. Indiquer SERVER(*OMPROUTED) et INSTANCE(*RIP) n'arrête que le travail serveur RIP. The OMPROUTER Daemon (OMPROUTED) server is ended. The Open Shortest Path First (OSPF) and Routing Information Protocol (RIP) server jobs are ended. Specifying SERVER(*OMPROUTED) and INSTANCE(*OSPF) will end only the OSPF server job. Specifying SERVER(*OMPROUTED) and INSTANCE(*RIP) will end only the RIP server job.
*ONDMD
Le travail serveur OnDemand (ONDMD) est arrêté. The OnDemand (ONDMD) server job is ended.
*POP
Tous les travaux serveur de courrier POP3 (Post Office Protocol) sont arrêtés. All Post Office Protocol (POP3) mail server jobs are ended.
*QOS
Le serveur QoS (Quality of Service) est arrêté. The Quality of Service (QOS) server is ended.
*REXEC
Tous les serveurs REXEC (Remote Execution) sont arrêtés. All Remote Execution (REXEC) servers are ended.
*ROUTED
Le serveur ROUTED (Router Daemon) est arrêté. The Router Daemon (ROUTED) server is ended.
*SMTP
Tous les travaux associés à SMTP (Simple Mail Transfer Protocol) dans le sous-système QSYSWRK sont arrêtés. Le travail passerelle du sous-système QSNADS n'est pas arrêté. All jobs associated with Simple Mail Transfer Protocol (SMTP) in the QSYSWRK subsystem are ended. The bridge job in the QSNADS subsystem is not ended.
*SNMP
Tous les travaux associés à l'agent SNMP (Simple Network Management Protocol) dans le sous-système QSYSWRK sont arrêtés. All jobs associated with the Simple Network Management Protocol (SNMP) agent in the QSYSWRK subsystem are ended.
*SRVSPTPRX
Le serveur SRVSPTPRX (Service and Support Proxy) est arrêté. The Service and Support Proxy (SRVSPTPRX) server is ended.
*SSHD
Le serveur SSH Daemon (Secure Shell) est arrêté. The Secure Shell (SSH) Daemon server is ended.
*TCM
The Triggered Cache Manager (TCM) server is ended unless:
  • Un nom d'instance de serveur précis est indiqué dans le paramètre TCMSVR. Seule l'instance indiquée est alors arrêtée. A specific server instance name is specified for the TCMSVR parameter. Then only the specified instance is ended.

Pour arrêter toutes les instances du serveur TCM, indiquez : To end all instances of the TCM server, specify:

  ENDTCPSVR   SERVER(*TCM)  TCMSVR(*ALL)

*TELNET
Tous les travaux serveur TELNET sont arrêtés. All TELNET server jobs are ended.
*TFTP
Tous les travaux serveur TFTP (Trivial File Transfer Protocol) sont arrêtés. All Trivial File Transfer Protocol (TFTP) server jobs are ended.
*VPN
Le serveur VPN (Virtual Private Network) est arrêté. Le serveur *VPN peut être arrêté lorsque le système est en état restreint. The Virtual Private Network (VPN) server is ended. The *VPN server can be ended when the system is in restricted state.
*WEBFACING
Le serveur WebFacing est arrêté. The WebFacing server is ended.

Serveur HTTP (HTTPSVR)HTTP server (HTTPSVR)

Indique le nom de l'instance du serveur HTTP à arrêter. Le paramètre SERVER indiqué doit être *HTTP, faute de quoi ce paramètre est ignoré. Specifies the name of the HTTP server instance to end. The SERVER parameter specified must be *HTTP or this parameter is ignored.

Si plusieurs instances de serveur HTTP ont été définies, vous pouvez choisir d'arrêter toutes les instances ou d'en arrêter une en particulier en indiquant son nom. If multiple HTTP server instances have been defined, you can choose to end all instances, or end one specific instance by specifying the instance name to be ended.

*ALL
Toutes les instances du serveur HTTP en cours d'exécution sont arrêtées. All instances of the HTTP server that are currently running are ended.
*ADMIN
Le serveur d'administration est arrêté. Le serveur d'administration est une instance du serveur HTTP qui permet d'administrer certaines fonctions système à l'aide d'un navigateur Web. The Administration Server is ended. The Administration Server is an instance of the HTTP server that allows administration of certain system functions using a Web browser.
nom
Indiquez le nom de l'instance du serveur HTTP à arrêter. Specify the name of the HTTP server instance to be ended.

Serveur DNS (DNSSVR)DNS server (DNSSVR)

Indique le nom de l'instance du serveur DNS à arrêter. Le paramètre SERVER indiqué doit être *DNS, faute de quoi ce paramètre est ignoré. Specifies the name of the DNS server instance to end. The SERVER parameter specified must be *DNS or this parameter is ignored.

Si plusieurs instances de serveur DNS ont été définies, vous pouvez choisir d'arrêter toutes les instances ou d'en arrêter une en particulier en indiquant son nom. If multiple DNS server instances have been defined, you can choose to end all instances, or end one specific instance by specifying the instance name to be ended.

*ALL
Toutes les instances du serveur DNS en cours d'exécution sont arrêtées. All instances of the DNS server that are currently running are ended.
nom
Indiquez le nom de l'instance du serveur DNS à arrêter. Specify the name of the DNS server instance to be ended.

Serveur TCM (TCMSVR)TCM server (TCMSVR)

Indique le nom de l'instance du serveur TCM à arrêter. Le paramètre SERVER indiqué doit être *TCM, faute de quoi ce paramètre est ignoré. Specifies the name of the TCM server instance to end. The SERVER parameter specified must be *TCM or this parameter is ignored.

Si plusieurs instances de serveur TCM ont été définies, vous pouvez choisir d'arrêter toutes les instances ou d'en arrêter une en particulier en indiquant son nom. If multiple TCM server instances have been defined, you can choose to end all instances, or end one specific instance by specifying the instance name to be ended.

*NONE
Aucune des instances du serveur TCM en cours d'exécution n'est arrêtée. No instances of the TCM server that are currently running are ended.
*ALL
Toutes les instances du serveur TCM en cours d'exécution sont arrêtées. All instances of the TCM server that are currently running are ended.
valeur-caractère
Indiquez le nom de l'instance du serveur TCM à arrêter. Specify the name of the TCM server instance to be ended.

Serveur ASFTOMCAT (TOMCATSVR)ASFTOMCAT server (TOMCATSVR)

Indique le nom de l'instance du serveur Tomcat à arrêter. Le paramètre SERVER indiqué doit être *ASFTOMCAT, faute de quoi ce paramètre est ignoré. Specifies the name of the Tomcat server instance to end. The SERVER parameter specified must be *ASFTOMCAT or this parameter is ignored.

Si plusieurs instances de serveur Tomcat ont été définies, vous pouvez choisir d'arrêter toutes les instances ou d'en arrêter une en particulier en indiquant son nom. If multiple Tomcat server instances have been defined, you can choose to end all instances, or end one specific instance by specifying the instance name to be ended.

*NONE
Aucune des instances du serveur Tomcat en cours d'exécution n'est arrêtée. No instances of the Tomcat server that are currently running are ended.
*ALL
Toutes les instances du serveur Tomcat en cours d'exécution sont arrêtées. All instances of the Tomcat server that are currently running are ended.
valeur-caractère
Indiquez le nom de l'instance du serveur Tomcat à arrêter. Specify the name of the Tomcat server instance to be ended.

Instance (INSTANCE)

Indique le nom de l'instance de serveur à arrêter. Ce paramètre peut être indiqué si le paramètre SERVER est *DIRSRV, *DNS, *HTTP, *OMPROUTED ou *TCM. Il peut également être indiqué pour les serveurs définis par l'utilisateur qui prennent en charge plusieurs instances de serveur. Specifies the name of the server instance to end. This parameter may be specified if the SERVER parameter is *DIRSRV, *DNS, *HTTP, *OMPROUTED, or *TCM. It may also be specified for user-defined servers which support multiple server instances.

*DFT
Le ou les serveurs par défaut sont arrêtés. Si le paramètre SERVER est *DIRSRV, l'instance de serveur QUSRDIR est arrêtée. Si le paramètre SERVER est *HTTP ou *DNS, toutes les instances de serveur définies sont arrêtées. Si le paramètre SERVER est *OMPROUTED, les travaux serveur *OSPF et *RIP sont tous deux arrêtés. Si le paramètre SERVER est *TCM, aucune instance de serveur définie n'est arrêtée The default server or servers are ended. If the SERVER parameter is *DIRSRV, the QUSRDIR server instance will be ended. If the SERVER parameter is *HTTP or *DNS, all defined server instances will be ended. If the SERVER parameter is *OMPROUTED, both the *OSPF and *RIP server jobs are ended. If the SERVER parameter is *TCM, no defined server instances will be ended
*ALL
Toutes les instances du serveur en cours d'exécution sont arrêtées. All instances of the server that are currently running are ended.
valeur-caractère
Indiquez le nom de l'instance de serveur à arrêter. Jusqu'à 32 caractères peuvent être indiqués. Specify the name of the server instance to be ended. Up to 32 characters may be specified.

Exemples

Exemple 1 : Arrêt de tous les serveurs TCP/IP Example 1: Ending All TCP/IP Servers

ENDTCPSVR   SERVER(*ALL)

Cette commande arrête tous les travaux serveur d'applications TCP/IP actifs. This command ends all active TCP/IP application server jobs.

Exemple 2 : Arrêt des serveurs LPD Example 2: Ending the LPD Servers

ENDTCPSVR   SERVER(*LPD)

Cette commande arrête les travaux serveur d'applications TCP/IP LPD. This command ends the TCP/IP LPD application server jobs.

Exemple 3 : Arrêt d'une instance précise de serveur HTTP Example 3: Ending a Specific HTTP Server Instance

ENDTCPSVR   SERVER(*HTTP)  HTTPSVR(HTTP1)
ENDTCPSVR   SERVER(*HTTP)  INSTANCE(HTTP1)

Ces commandes arrêtent l'instance de serveur d'applications TCP/IP HTTP nommée HTTP1. These commands end the TCP/IP HTTP application server instance named HTTP1.

Exemple 4 : Arrêt d'une instance précise de serveur DNS Example 4: Ending a Specific DNS Server Instance

ENDTCPSVR   SERVER(*DNS)  DNSSVR(DNS1)
ENDTCPSVR   SERVER(*DNS)  INSTANCE(DNS1)

Ces commandes arrêtent l'instance de serveur d'applications TCP/IP DNS nommée DNS1. These commands end the TCP/IP DNS application server instance named DNS1.

Exemple 5 : Toutes les instances du serveur de services d'annuaire Example 5: All Directory Services Server Instances

ENDTCPSVR   SERVER(*DIRSRV) INSTANCE(*ALL)

Cette commande arrête toutes les instances du serveur de services d'annuaire. This command ends all instances of the Directory Services server.

Messages d'erreur

Messages *ESCAPE *ESCAPE Messages

CPF3894
Réponse d'annulation reçue pour message &1.
TCP1A0A
&1 s'est terminé de manière anormale. Le code anomalie est &2. &1 ended abnormally. Reason code is &2.
TCP1A11
&1 a échoué. &1 failed.
TCP1A77
&1 s'est terminé correctement ; toutefois, des erreurs se sont produites. &1 completed successfully; however errors occurred.

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