CL Command Reference - ENDTCPSVR
CL Command List > ENDTCPSVR Reference
Description:
The 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. The interface server job QTCPIP must be available. When the system is in restricted state, this command is not allowed.
Additional servers can automatically be added to the list of servers that ENDTCPSVR will support by using the ADDTCPSVR (Add TCP/IP Server) CL command.
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.
Examples:
Example 1: Ending All TCP/IP Servers
ENDTCPSVR SERVER(*ALL)
This command ends all active TCP/IP application server jobs.
Example 2: Ending the LPD Servers
ENDTCPSVR SERVER(*LPD)
This command ends the TCP/IP LPD application server jobs.
Example 3: Ending a Specific HTTP Server Instance
ENDTCPSVR SERVER(*HTTP) HTTPSVR(http1)
This command ends the TCP/IP HTTP application server instance named ¡¯http1¡¯.
Example 4: Ending a Specific DNS Server Instance
ENDTCPSVR SERVER(*DNS) DNSSVR(¡¯dns1¡¯)
This command ends the TCP/IP DNS application server instance named ¡¯dns1¡¯.