Command reference / comm

STRTCPSVR

Start TCP/IP Server

The Start TCP/IP Server (STRTCPSVR) command is used to start the TCP/IP application servers that are shipped with the operating system or the TCP/IP product. The number of server jobs started by this command is specified, where appropriate, in the configuration for each TCP/IP application. The STRTCPSVR command can only be used when TCP/IP is fully operational in normal operating mode. Only the *VPN server can be started when the system is in restricted state. All servers have an autostart (AUTOSTART) parameter on the associated configuration command (for example, Change FTP Attributes (CHGFTPA)). This parameter indicates if the server should be started when the Start TCP/IP (STRTCP) command is entered. The STRTCPSVR command ignores the value of a server's autostart attribute, unless *AUTOSTART is specified for the Server application (SERVER) parameter. If a server has *YES for the AUTOSTART attribute, then the STRTCPSVR command will start the server when SERVER(*AUTOSTART) is specified. Additional servers can automatically be added to list of servers that STRTCPSVR will support by using the Add TCP/IP Server (ADDTCPSVR) command.

Allowed environments: *ALL. Positional parameters: 1.

Restrictions

Parameters

SERVER SERVER

Specifies the TCP/IP application servers to be started by this command.

Type
*CHAR
Required
No
Default
*ALL
Length
30
List limit
300
Case
Uppercase

Suggested / special values: *FTP, *TELNET, *HTTP, *SSHD, *SMTP, *POP, *DNS, *NTP, *ALL, *AUTOSTART

*ALL
All of the TCP/IP application servers and all HTTP, DNS, and TCM server instances are started.
*AUTOSTART
All of the TCP/IP application servers that are defined with *YES for the AUTOSTART attribute are to be started.
*BOOTP
The Bootstrap Protocol (BOOTP) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*BOOTP) will result in a diagnostic message if the BOOTP server job has already been started.
*DBG
The Debug (DBG) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*DBG) will result in a diagnostic message if the DBG server has already been started.
*DDM
The Distributed Data Manager (DDM) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*DDM) will result in a diagnostic message if the DDM server job has already been started.
*DHCP
The Dynamic Host Configuration Protocol (DHCP) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*DHCP) will result in a diagnostic message if the DHCP server has already been started.
*DIRSRV
The Lightweight Directory Access Protocol (LDAP) server is started. The LDAP server is also known as the directory services (DIRSRV) server. See the parameter documentation for the INSTANCE (INSTANCE) parameter for information on starting server instances. Subsequent use of the STRTCPSVR command specifying SERVER(*DIRSRV) will result in a diagnostic message if the LDAP server has already been started.
*DLFM
The DataLink File Manager (DLFM) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*DLFM) will result in a diagnostic message if the DLFM server has already been started.
*DNS
One or more instances of the Domain Name System (DNS) server are started. See the parameter documentation for the DNS server (DNSSVR) parameter for more information on DNS server instances. Subsequent use of the STRTCPSVR command specifying SERVER(*DNS) will result in a diagnostic message if the DNS server has already been started.
*DOMINO
The Lotus Domino (DOMINO) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*DOMINO) will result in a diagnostic message if the DOMINO server has already been started.
*EDRSQL
The Extended Dynamic Remote SQL (EDRSQL) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*EDRSQL) will result in a diagnostic message if the EDRSQL server has already been started.
*FTP
The File Transfer Protocol (FTP) servers are started, based on the number of servers configured with the Change FTP Attributes (CHGFTPA) command. Subsequent use of the STRTCPSVR command specifying SERVER(*FTP) will start one additional FTP server. Note: Having more than one FTP server job running can improve the performance of initiating a session when multiple users attempt to connect to the server in a short period of time.
*HTTP
One or more instances of the World Wide Web HyperText Transfer Protocol (HTTP) server is started. See the parameter documentation for the HTTP server (HTTPSVR) parameter for more information on HTTP server instances. Subsequent use of the STRTCPSVR command specifying SERVER(*HTTP) will result in a diagnostic message if the HTTP server has already been started.
*IAS
The Integrated Web Application (IAS) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*IAS) will result in a diagnostic message if the IAS server has already been started.
*INETD
The Internet Daemon (INETD) is started. Subsequent use of the STRTCPSVR command specifying SERVER(*INETD) will result in a diagnostic message if the INETD server has already been started.
*LPD
The line printer daemon (LPD) servers are started, based on the number of servers configured with the Change LPD Attributes (CHGLPDA) command. Subsequent usage of the STRTCPSVR command specifying SERVER(*LPD) will start one additional LPD server. Note: LPD works most efficiently when two or more servers are running. Running only one server will work, but no jobs can be received while a current job is running. If a large print job is running, new jobs have to wait before LPD is ready to accept any new LPR requests.
*MGTC
The Management Central (MGTC) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*MGTC) will result in a diagnostic message if the MGTC server has already been started.
*NETSVR
The NetServer (NETSVR) server is started.
*NTP
The Simple Network Time Protocol (SNTP) services servers are started. See the parameter documentation for the SNTP service (NTPSRV) parameter for more information on specifying which SNTP services to start. Subsequent use of the STRTCPSVR command specifying SERVER(*NTP) will result in a diagnostic message if the indicated SNTP services server has already been started. 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. To change which SNTP services are active, run the ENDTCPSVR command specifying SERVER(*NTP), which will end all active SNTP services. Then run the STRTCPSVR command again, specifying SERVER(*NTP), and either NTPSRV(*CLIENT) or NTPSRV(*SERVER).
*OMPROUTED
The OMPROUTE Daemon (OMPROUTED) server is started. The OMPROUTE Daemon handles the Open Shortest Path First (OSPF) and Routing Information Protocol (RIP) server jobs. Specifying SERVER(*OMPROUTED) and INSTANCE(*OSPF) will start only the OSPF server job. Specifying SERVER(*OMPROUTED) and INSTANCE(*RIP) will start only the RIP server job. Subsequent use of the STRTCPSVR SERVER(*OMPROUTED) command results in a diagnostic message if the server job has already been started.
*ONDMD
The On Demand Server (ONDMD) is started. Subsequent use of the STRTCPSVR command specifying SERVER(*ONDMD) will result in a diagnostic message if the ONDMD server has already been started.
*POP
The Post Office Protocol (POP) version 3 mail servers are started based on the number of servers configured with the Change POP Server Attributes (CHGPOPA) command. Subsequent use of the STRTCPSVR SERVER(*POP) command results in a diagnostic message if the server has already been started.
*QOS
The Quality of Service (QoS) server is started. Subsequent use of the STRTCPSVR SERVER(*QOS) command results in a diagnostic message if the QoS server has already been started.
*REXEC
The Remote Execution (REXEC) servers are started based on the number of servers configured with the Change REXEC Attributes (CHGRXCA) command. Subsequent use of the STRTCPSVR command specifying SERVER(*REXEC) will start one additional REXEC server.
*ROUTED
The Router Daemon (ROUTED) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*ROUTED) will result in a diagnostic message if the RouteD server has already been started.
*SMTP
The Simple Mail Transfer Protocol (SMTP) client and server jobs are started. Additional SMTP client and server jobs cannot be started. Subsequent use of the STRTCPSVR SERVER(*SMTP) command results in a diagnostic message if the SMTP server jobs have already been started.
*SNMP
The Simple Network Management Protocol (SNMP) agent server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*SNMP) will result in a diagnostic message if the SNMP server has already been started.
*SRVSPTPRX
The Service and Support Proxy (SRVSPTPRX) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*SRVSPTPRX) will result in a diagnostic message if the SRVSPTPRX server has already been started.
*SSHD
The Secure Shell (SSH) Daemon server is started. Subsequent use of the STRTCPSVR SERVER(*SSHD) command results in a diagnostic message if the server has already been started.
*TCM
One or more instances of the Triggered Cache Manager (TCM) server is started. See the parameter documentation for the TCM server (TCMSVR) parameter for more information on specifying which TCM server instances to start. Subsequent use of the STRTCPSVR command specifying SERVER(*TCM) will result in a diagnostic message if the indicated TCM server instance has already been started.
*TELNET
The TELNET server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*TELNET) will start one additional TELNET server. Note: Having more than one TELNET server job running reduces the chances of having connection attempts refused.
*TFTP
The Trivial File Transfer Protocol (TFTP) servers are started based on the number of servers configured with the Change TFTP Attributes (CHGTFTPA) command. Subsequent use of the STRTCPSVR SERVER(*TFTP) command results in a diagnostic message if the TFTP server jobs have already been started.
*VPN
The Virtual Private Network (VPN) server is started. The VPN server can be started when the system is in restricted state. Subsequent use of the STRTCPSVR command specifying SERVER(*VPN) will result in a diagnostic message if the VPN server has already been started.
*WEBFACING
The WebFacing (WEBFACING) server is started. Subsequent use of the STRTCPSVR command specifying SERVER(*WEBFACING) will result in a diagnostic message if the WebFacing server has already been started.

Examples

STRTCPSVR SERVER(*AUTOSTART)

Starting All TCP/IP Servers with AUTOSTART(*YES). This command starts all of the TCP/IP application servers that have the AUTOSTART attribute in the application configuration set to *YES.

STRTCPSVR SERVER(*ALL)

Starting All TCP/IP Servers. This command starts all of the TCP/IP application servers that have been configured. For example: If the Change FTP Attributes (CHGFTPA) command was previously used to configure two FTP servers, both servers are started when STRTCPSVR is issued. This example is also true for other TCP/IP application servers. Where applicable, the server configuration determines how many instances start.

STRTCPSVR SERVER(*TELNET)

Starting the TELNET Server. This command starts the TCP/IP TELNET application server. If the TELNET server was previously started, one additional TELNET server job is started.

STRTCPSVR SERVER(*HTTP) RESTART(*HTTP)

Restarting the HTTP Server. This command restarts the TCP/IP HTTP application server for all instances of the HTTP server. If the HTTP server was not currently running, then all defined instances of the HTTP server would be started.

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

Starting an HTTP Server Instance. These commands start the TCP/IP HTTP application server instance named HTTP1 using the startup values previously defined for this server instance.

STRTCPSVR SERVER(*HTTP) HTTPSVR(HTTP1 '-p 81 -sslport 443') STRTCPSVR SERVER(*HTTP) INSTANCE(HTTP1 '-p 81 -sslport 443')

Specifying Startup Values for an HTTP Instance. These commands start the TCP/IP HTTP application server instance named HTTP1, and specifies that the server instance should listen on port 81 for unsecure requests and on port 443 for secure requests. The ports defined here will override any previously defined ports to be used by this server instance.

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

Starting a DNS Server Instance. These commands start the TCP/IP DNS application server instance named DNS1 using the startup values previously defined for this server instance.

STRTCPSVR SERVER(*DNS) DNSSVR(DNS1 '-d 5') STRTCPSVR SERVER(*DNS) INSTANCE(DNS1 '-d 5')

Specifying Startup Values for a DNS Instance. These commands start the TCP/IP DNS application server instance named DNS1, and specifies that the server instance should turn on debug level 5.

STRTCPSVR SERVER(*DIRSRV) INSTANCE(*AUTOSTART)

Starting Directory Services Instances. This command starts all instances of the Directory Services server that have been configured to be automatically started.

IBM command documentation

Generated from os/cl/catalog/STRTCPSVR.json and os/cl/help/STRTCPSVR.json.