CL Command Reference - STRTCP
CL Command List > STRTCP Reference
Description:
The Start TCP/IP (STRTCP) command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, starts the TCP/IP server jobs, and starts the TCP/IP Point-To-Point (PTP) profiles. A STRTCP command must be issued before any TCP/IP processing can be performed on the system. This includes Simple Network Management Protocol (SNMP) agent processing.
The TCP/IP interfaces that are started are those that have set the AUTOSTART parameter to a value of *YES using the Add TCP/IP Interface (ADDTCPIFC), the Change TCP/IP Interface (CHGTCPIFC) commands, or the iSeries Navigator.
The Change IPL Attributes (CHGIPLA) command with the STRTCP parameter set to a value of *YES can be used to automatically submit the STRTCP command at the completion of IPL.
The TCP/IP application server jobs that can be started are:
. Apache Software Foundation (ASF) Tomcat server
. Bootstrap Protocol (BOOTP)
. Common Information Model Object Manager (CIMOM)
. DataLink File Manager (DLFM)
. Debug Server (DBG)
. Directory Services (DIRSRV)
. Distributed Data Management (DDM)
. Domain Name Server (DNS)
. Domino
. Dynamic Host Configuration Protocol (DHCP)
. Extended Dynamic Remote SQL (EDRSQL)
. File Transfer Protocol (FTP)
. Hypertext Transfer Protocol (HTTP)
. IBM Host On-Demand (HOD)
. IBM Online Help and Eclipse Information Center (IBMHELP)
. Internet Daemon (INETD)
. Line Printer Daemon (LPD)
. Management Central (MGTC)
. NetServer (NETSVR)
. Network Station Login Daemon (NSLD)
. On Demand (ONDMD)
. On-Demand Platform Authentication (ODPA)
. Post Office Protocol (POP)
. Quality of Service (QoS)
. Remote Execution (REXEC)
. Router Daemon (ROUTED)
. Service and Support Proxy (SRVSPTPRX)
. Simple Mail Transfer Protocol (SMTP)
. Simple Network Management Protocol (SNMP) agent
. Simple Network Time Protocol (NTP)
. Triggered Cache Manager (TCM)
. Trivial File Transfer Protocol (TFTP)
. Virtual Private Network (VPN)
. Virtual terminal support (TELNET)
. WebFacing (WEBFACING)
The Start TCP/IP command only starts a TCP/IP application job if the AUTOSTART attribute in the application¡¯s configuration is set to *YES when the command is issued. No TCP/IP application jobs are started in the QSYSWRK subsystem if any of the following is true:
. The TCP/IP licensed program product is not installed.
. All of the TCP/IP applications have an AUTOSTART configuration attribute value of *NO.
. STRSVR(*NO) is specified for the STRTCP command. See the description of the STRSVR parameter below.
When the STRTCP command is issued, the QTCPIP job in the QSYSWRK subsystem is started. The QTCPIP job is used for activating and deactivating TCP/IP interfaces.
Note: The Start TCP/IP (STRTCP) CL command does not need to be issued to use socket applications that run over an SNA network.
Attention: Before attempting to start an X.25 interface, ensure that the remote system information (RSI) for non-DDN X.25 interfaces that use a permanent virtual circuit (PVC) is configured. Use the Add TCP/IP Remote System Information (ADDTCPRSI) command to do this.
Incoming data from a remote system on the X.25 network is not processed unless an RSI entry for the PVC is configured on the X.25 interface before the interface is started.
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: Starting TCP/IP
STRTCP
This command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, and starts the TCP/IP server jobs.
Example 2: Starting TCP/IP and TCP/IP Servers
STRTCP STRSVR(*YES)
Because *YES is the default value for the STRSVR parameter, the result of issuing this command is identical to the Example 1.
Example 3: Starting TCP/IP But Not the TCP/IP Servers
STRTCP STRSVR(*NO)
This will start TCP/IP processing without starting any of the TCP/IP application server jobs.
Example 4: Starting TCP/IP in Restricted State
STRTCP STRSVR(*NO) STRIFC(*NO) STRPTPPRF(*NO) STRIP6(*YES)
This will start TCP/IP processing (both IPv4 and IPv6), even if the system is in restricted state. TCP/IP application servers and IP interfaces will not be started.
Example 5: Starting TCP/IP without starting IPv6 processing
STRTCP STRSVR(*YES) STRIFC(*YES) STRPTPPRF(*YES) STRIP6(*NO)
This command initializes and activates TCP/IP processing (IPv4 only), starts the TCP/IP interfaces (IPv4 only) that have the AUTOSTART parameter set to *YES. Starts the TCP/IP servers that have the AUTOSTART parameter set to *YES. Starts the Point to Point profiles that have the AUTOSTART parameter set to *YES.