Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
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. 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 Add TCP/IP Server (ADDTCPSVR) command.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SERVER | Server application | Single values: *ALL Other values (up to 300 repetitions): Character value |
Optional, Positional 1 |
HTTPSVR | HTTP server | Single values: *ALL Other values: Element list |
Optional |
Element 1: Server instance | Name, *ADMIN | ||
DNSSVR | DNS server | Single values: *ALL Other values: Element list |
Optional |
Element 1: Server instance | Name | ||
TCMSVR | TCM server | Single values: *NONE Other values: Element list |
Optional |
Element 1: Instance name | Character value, *ALL | ||
TOMCATSVR | ASFTOMCAT server | Single values: *NONE Other values: Element list |
Optional |
Element 1: Server instance name | Character value, *ALL | ||
INSTANCE | Instance | Character value, *DFT, *ALL | Optional |
Top |
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.
Single values
Other values (up to 300 repetitions)
To end all instances of the DNS server, specify one of the following:
ENDTCPSVR SERVER(*DNS) ENDTCPSVR SERVER(*DNS) DNSSVR(*ALL)
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.
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).
To end all instances of the TCM server, specify:
ENDTCPSVR SERVER(*TCM) TCMSVR(*ALL)
Top |
Specifies the name of the HTTP server instance to end. The SERVER parameter specified must be *HTTP or this parameter is ignored.
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.
Top |
Specifies the name of the DNS server instance to end. The SERVER parameter specified must be *DNS or this parameter is ignored.
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.
Top |
Specifies the name of the TCM server instance to end. The SERVER parameter specified must be *TCM or this parameter is ignored.
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.
Top |
Specifies the name of the Tomcat server instance to end. The SERVER parameter specified must be *ASFTOMCAT or this parameter is ignored.
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.
Top |
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.
Top |
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) ENDTCPSVR SERVER(*HTTP) INSTANCE(HTTP1)
These commands end the TCP/IP HTTP application server instance named HTTP1.
Example 4: Ending a Specific DNS Server Instance
ENDTCPSVR SERVER(*DNS) DNSSVR(DNS1) ENDTCPSVR SERVER(*DNS) INSTANCE(DNS1)
These commands end the TCP/IP DNS application server instance named DNS1.
Example 5: All Directory Services Server Instances
ENDTCPSVR SERVER(*DIRSRV) INSTANCE(*ALL)
This command ends all instances of the Directory Services server.
Top |
*ESCAPE Messages
Top |