CL Command Reference - ADDTCPSVR
CL Command List > ADDTCPSVR Reference
Description:
The Add TCP/IP Server (ADDTCPSVR) command is used to add servers to the list of servers supported by the STRTCPSVR (Start TCP/IP server) and ENDTCPSVR (End TCP/IP server) CL commands.
Servers added with the ADDTCPSVR command can be changed with the CHGTCPSVR (Change TCP/IP server) or removed with the RMVTCPSVR (Remove TCP/IP server) commands.
Restrictions:
. You must have input/output system configuration (*IOSYSCFG) and all object (*ALLOBJ) special authorities to run this command.
Examples:
ADDTCPSVR SVRSPCVAL(*XYZ)
PGM(MYLIB/UUSTARTXYZ)
SVRNAME(¡¯XYZ protocol server¡¯)
SVRTYPE(¡¯XYZ¡¯) AUTOSTART(*YES)
This command adds a new server to the list of servers supported by the STRTCPSVR (Start TCP/IP Server) and ENDTCPSVR (End TCP/IP Server) CL commands. The new server type can be selected on the STRTCPSVR or ENDTCPSVR commands by specifying SERVER(*XYZ). User program UUSTARTXYZ in library MYLIB will be called when the XYZ server is started or ended. The new server will be started automatically when the STRTCPSVR command is run specifying SERVER(*AUTOSTART), or when the STRTCP (Start TCP/IP) command is run.