Telnet supports up to 255 ports on one server. A unique TELNETPARMS block must be created for each port or qualified port. Telnet allows the use of the same BEGINVTAM block for all ports, some ports, or a unique BEGINVTAM block for each port. Both TELNETPARMS and BEGINVTAM blocks are required for each port started or modified by a VARY TCPIP,tnproc,OBEYFILE command. There are several reasons that more than one Telnet port or qualified port might be needed. The most common reasons are to simplify the setup of clients on the workstation and the logon process, and to differentiate client security needs.
TELNETPARMS
PORT 23
ENDTELNETPARMS
TELNETPARMS
PORT 2023
ENDTELNETPARMS
TELNETPARMS
PORT 4023
ENDTELNETPARMS
BEGINVTAM
PORT 23
DEFAULTLUS TCPABC01..TCPABC99 ENDDEFAULTLUS
DEFAULTAPPL TSO
ENDVTAM
BEGINVTAM
PORT 2023
DEFAULTLUS TCPABC01..TCPABC99 ENDDEFAULTLUS
DEFAULTAPPL IMS
ENDVTAM
BEGINVTAM
PORT 4023
DEFAULTLUS TCPABC01..TCPABC99 ENDDEFAULTLUS
DEFAULTAPPL CICS
ENDVTAM
TELNETPARMS
PORT 23
ENDTELNETPARMS
TELNETPARMS
TTLSPORT 992
ENDTELNETPARMS
BEGINVTAM
PORT 23 992
DEFAULTLUS TCPABC01..TCPABC99 ENDDEFAULTLUS
ALLOWAPPL *
ENDVTAM
If a profile that contains a new port number is processed, it is treated as an additional port, and the VARY TCPIP,tnproc,OBEYFILE command request will succeed if all parameters for the new port are correctly specified. Existing, non-referenced ports remain active and unchanged. You can use the VARY TCPIP,tnproc,TELNET,STOP command to stop a port.