Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SVRSPCVAL | Server special value | Character value | Required, Positional 1 |
PGM | Program to call | Qualified object name | Required, Positional 2 |
Qualifier 1: Program to call | Name | ||
Qualifier 2: Library | Name | ||
SVRNAME | Server name | Character value | Required, Positional 3 |
SVRTYPE | Server type | Character value | Required, Positional 4 |
AUTOSTART | Autostart | *YES, *NO | Optional, Positional 5 |
TEXT | Text 'description' | Character value, *BLANK | Optional, Positional 6 |
Top |
Specifies the special value to be used to identify the server being added. This value will be used by the Start TCP/IP Server (STRTCPSVR) and End TCP/IP Server (ENDTCPSVR) commands.
This is a required parameter.
Top |
Specifies the program to be called when this server is started or ended by the following commands:
The following ten-character argument will be passed to the defined program:
This is a required parameter.
Qualifier 1: Program to call
Qualifier 2: Library
Top |
Specifies the textual server name that will be used by iSeries Navigator to display an entry for this server.
This is a required parameter.
Top |
Specifies the server type that will be used by Work Management functions from iSeries Navigator to find job information, such as joblogs and server status, for this server.
This is a required parameter.
Top |
Specifies whether the server being added should be started when the Start TCP/IP (STRTCP) command is run.
Top |
Specifies a text description for the server being added.
Top |
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.
Top |
Top |