Command reference / comm
ENDTCPSVR
End TCP/IP 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. 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. 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. Additional servers can automatically be added to the list of servers that ENDTCPSVR will support by using the Add TCP/IP Server (ADDTCPSVR) command.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- 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.
Parameters
SERVER
SERVER
Specifies which of the TCP/IP application server jobs is to be ended by this command. Additional TCP/IP servers could also be available if they were added by running the Add TCP/IP Server (ADDTCPSVR) command. For a list of all supported values for this parameter, you can press F4 (Prompt) for this parameter when prompting this command.
Suggested / special values:
*FTP, *TELNET, *HTTP, *SSHD, *SMTP, *POP, *DNS, *NTP, *ALL
*ALL- All of the TCP/IP server jobs are ended.
*BOOTP- The bootstrap protocol (BOOTP) server is ended.
*DBG- The Debug server is ended.
*DDM- The Distributed Data Management (DDM) server job is ended.
*DHCP- The Dynamic Host Configuration Protocol (DHCP) server job is ended.
*DIRSRV- The LDAP directory services (DIRSVR) server job is ended.
*DLFM- The DataLink File Manager (DLFM) server job is ended.
*DNS- The Domain Name System (DNS) server job is ended unless: A specific server instance name is specified for the DNSSVR parameter. Then only the specified instance is ended. To end all instances of the DNS server, specify one of the following: ENDTCPSVR SERVER(*DNS) ENDTCPSVR SERVER(*DNS) DNSSVR(*ALL)
*DOMINO- The Lotus Domino (DOMINO) server is ended.
*EDRSQL- The Extended Dynamic Remote SQL (EDRSQL) server is ended.
*FTP- All File Transfer Protocol (FTP) server jobs are ended.
*HTTP- All instances of the HyperText Transfer Protocol (HTTP) server are ended unless: A specific server instance name is specified for the HTTPSVR parameter. Then only the specified instance is ended. The *ADMIN special value is specified for the HTTPSVR parameter. Then only the administration server is ended. To end all instances of the HTTP server, specify one of the following: ENDTCPSVR SERVER(*HTTP) ENDTCPSVR SERVER(*HTTP) HTTPSVR(*ALL) The HTTP server is also known as the IBM HTTP Server.
*IAS- The Integrated Web Application (IAS) server is ended.
*INETD- The Internet Daemon (INETD) server is ended.
*LPD- All line printer daemon (LPD) servers are ended.
*MGTC- The Management Central (MGTC) server is ended.
*NETSVR- The NetServer (NETSVR) server is ended.
*NTP- All Simple Network Time Protocol (SNTP) services servers are ended. 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- 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- The OnDemand (ONDMD) server job is ended.
*POP- All Post Office Protocol (POP3) mail server jobs are ended.
*QOS- The Quality of Service (QOS) server is ended.
*REXEC- All Remote Execution (REXEC) servers are ended.
*ROUTED- The Router Daemon (ROUTED) server is ended.
*SMTP- 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- All jobs associated with the Simple Network Management Protocol (SNMP) agent in the QSYSWRK subsystem are ended.
*SRVSPTPRX- The Service and Support Proxy (SRVSPTPRX) server is ended.
*SSHD- The Secure Shell (SSH) Daemon server is ended.
*TCM- The Triggered Cache Manager (TCM) server is ended unless: A specific server instance name is specified for the TCMSVR parameter. Then only the specified instance is ended. To end all instances of the TCM server, specify: ENDTCPSVR SERVER(*TCM) TCMSVR(*ALL)
*TELNET- All TELNET server jobs are ended.
*TFTP- All Trivial File Transfer Protocol (TFTP) server jobs are ended.
*VPN- The Virtual Private Network (VPN) server is ended. The *VPN server can be ended when the system is in restricted state.
*WEBFACING- The WebFacing server is ended.
Examples
ENDTCPSVR SERVER(*ALL)
Ending All TCP/IP Servers. This command ends all active TCP/IP application server jobs.
ENDTCPSVR SERVER(*LPD)
Ending the LPD Servers. This command ends the TCP/IP LPD application server jobs.
ENDTCPSVR SERVER(*HTTP) HTTPSVR(HTTP1) ENDTCPSVR SERVER(*HTTP) INSTANCE(HTTP1)
Ending a Specific HTTP Server Instance. These commands end the TCP/IP HTTP application server instance named HTTP1.
ENDTCPSVR SERVER(*DNS) DNSSVR(DNS1) ENDTCPSVR SERVER(*DNS) INSTANCE(DNS1)
Ending a Specific DNS Server Instance. These commands end the TCP/IP DNS application server instance named DNS1.
ENDTCPSVR SERVER(*DIRSRV) INSTANCE(*ALL)
All Directory Services Server Instances. This command ends all instances of the Directory Services server.
Generated from os/cl/catalog/ENDTCPSVR.json and os/cl/help/ENDTCPSVR.json.