STRTCP (Start TCP/IP)

STRTCP Command syntax diagram

 

Purpose

The Start TCP/IP (STRTCP) command initializes and activates TCP/IP processing, starts the TCP/IP interfaces, and starts the TCP/IP server jobs. A STRTCP command must be issued before any TCP/IP processing can be performed on the iSeries. 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) command, the Change TCP/IP Interface (CHGTCPIFC) commands, or the iSeries Navigator.

Note: If TCP/IP is started when no subsystems are active (i.e. the system is in restricted state), no application server jobs or TCP/IP interfaces are started.
>

Jobs can be started for these TCP/IP application servers:

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:

Use the commands listed below to change the configuration for an application so that it will be automatically started when the Start TCP/IP command is issued.

When the STRTCP command is issued and the iSeries is not in restricted state, >the QTCPIP job in the QSYSWRK subsystem is started. The QTCPIP job is used for activating and deactivating TCP/IP interfaces.

Note: The STRTCP 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.

 

Optional Parameters

STRSVR
Specifies whether or not TCP/IP application servers are started by the Start TCP/IP (STRTCP) command.

*YES: The STRTCP command also starts all TCP/IP application servers with a configuration attribute of AUTOSTART(*YES) when TCP/IP is activated.

*NO: The STRTCP command does not start any of the TCP/IP application servers when TCP/IP is activated. The AUTOSTART attribute in the application configuration is ignored.

STRIFC
Specifies whether or not to activate all TCP/IP interfaces that specify AUTOSTART(*YES) when TCP/IP is activated.

*YES: When the QTCPIP job is started by the STRTCP command, the job will attempt to activate all TCP/IP interfaces for which AUTOSTART(*YES) is specified.

*NO: The AUTOSTART(*YES) interface parameter will be ignored. No TCP/IP interfaces will be automatically started.

Examples for STRTCP

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)

This will start TCP/IP processing, even if the system is in restricted state. TCP/IP application servers and IP interfaces will not be started.>

Error messages for STRTCP

*ESCAPE Messages

CPF9848
Cannot open file &1 in library &2 member &3.
CPF9849
Error while processing file &1 in library &2 member &3.
TCP1A04
&1 currently active.
TCP1A12
Error occurred submitting interface job.
TCP1A14
Error occurred starting TCP/IP servers.
TCP1A77
&1 completed successfully; however errors occurred.
TCP1D03
&1 member record length not correct.
TCP1D04
Error occurred processing member &1 of &2/&3.
TCP9999
Internal system error in program &1.