Command reference / sys
STRTCP
Start TCP/IP
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, including SNMP agent processing. Interfaces started are those set to AUTOSTART(*YES) with ADDTCPIFC or CHGTCPIFC, or in Systems Director Navigator. Application servers start only if their AUTOSTART attribute is *YES when the command is issued. The CHGIPLA command with STRTCP(*YES) can submit STRTCP automatically at the end of IPL. STRTCP is not needed for socket applications over an SNA network.
Allowed environments: *ALL.
Positional parameters: 0.
Restrictions
- Conditionally threadsafe. The command calls a different program for each TCP/IP server type, and is threadsafe only if those programs are threadsafe.
Parameters
STRSVR
Start application servers
Specifies whether TCP/IP application servers with AUTOSTART(*YES) are started when TCP/IP is activated. Use STRSVR(*NO) when AnyNet servers are already active. Use STRTCPSVR to start more servers later.
Allowed values:
*YES, *NO
*YES- All TCP/IP application servers with AUTOSTART(*YES) are started when TCP/IP is activated.
*NO- No TCP/IP application servers are started when TCP/IP is activated.
STRIFC
Start TCP/IP interfaces
Specifies whether TCP/IP interfaces with AUTOSTART(*YES) are activated when TCP/IP is activated. Does not affect other AnyNet protocol interfaces.
Allowed values:
*YES, *NO
*YES- QTCPWRK attempts to activate all TCP/IP interfaces with AUTOSTART(*YES).
*NO- The AUTOSTART interface setting is ignored, and no TCP/IP interfaces are started automatically.
STRPTPPRF
Start point-to-point profiles
Specifies whether point-to-point profiles with AUTOSTART(*YES) are activated when TCP/IP is activated. When *YES, the STRTCPPTP command is run as part of STRTCP.
Allowed values:
*YES, *NO
*YES- STRTCPPTP runs and attempts to start all point-to-point profiles with AUTOSTART(*YES).
*NO- STRTCPPTP is not run.
STRIP6
Start IPv6
Specifies whether the IPv6 portion of the TCP/IP protocol stack is activated. When STRIFC(*YES) is also specified, IPv6 lines and interfaces with AUTOSTART(*YES) are started.
Allowed values:
*YES, *NO
*YES- The IPv6 portion of the stack is started, along with AUTOSTART IPv6 lines and interfaces if STRIFC(*YES).
*NO- The IPv6 protocol is not started.
Examples
STRTCP STRSVR(*NO)
Starts TCP/IP processing without starting any TCP/IP application server jobs.
Generated from os/cl/catalog/STRTCP.json and os/cl/help/STRTCP.json.