1 TELNETStarts a TELNET session and does one of the following: o Displays the TELNET prompt. o Establishes a connection to a remote host. o Establishes a connection to a remote host and runs TN3270. For help with individual TELNET commands, enter: $ TELNET TELNET> HELP DCL-Style Format TELNET [ host ] qualifier(s)* [ port ] [unit ] *Choose from the following qualifiers: [ /BIND_SESSION network_device /PROTOCOL=protocol ] [ /CREATE_SESSION [ /[ NO ]TIMEOUT=option /PROTOCOL=option [ /DELETE_SESSION ] [ /LOG_FILE=file ] [ /NOINTERACTIVE ] [ /PORT=n ] [ /TERMINAL_TYPE=type ] [ /UNBIND_SESSION ] UNIX Style Format telnet [ host ] 2 Parameters host Required with the /CREATE_SESSION qualifier; optional in all other cases. Default: None. Remote host to which you want to connect. Specify one of the following: o Host name o IP address port Required with the /CREATE_SESSION qualifier; ignored in all other cases. Default: None. Specifies the remote port to which you want to connect the pseudodevice. unit Required with the /DELETE_SESSION qualifier; optional with the /CREATE_SESSION qualifier; ignored in all other cases. Default: 0. With the /CREATE_SESSION qualifier, specifies the unit number you want associated with the network terminal. The default of 0 allows the TELNET software to select the next available unit number. With the /DELETE_SESSION qualifier, specifies the unit number of the network terminal you want to delete. 2 Qualifiers /BIND_SESSION /BIND_SESSION network_device Optional. Default: None. Binds a TELNET terminal device to an existing network device. If the bind is successful, the DCL symbol $TELNET_DEVICE contains the TNA device name. /CREATE_SESSION Optional. Default: None. Specifies that TELNET should create a pseudodevice (network terminal) and connect it to the specified remote port. For additional information, see the CREATE_SESSION command. /NOTIMEOUT /TIMEOUT=option Where option is: NOIDLE IDLE=delta_time_interval Specifies the delta time interval to wait with no activity before closing the connection. The general delta time format is HH:MM:SS:CC. NORECONNECT RECONNECT=delta_time_interval Specifies the delta time interval to wait before retrying a connect request. The general delta time format is HH:MM:SS:CC. /PROTOCOL=option Optional. Default: NONE. where option is: o NONE Data is sent with no interpretation (raw). o NVT Network Virtual Terminal (NVT), TELNET's internal representation of a standard network terminal. NVT format is standard 7-bit ASCII code transmitted in 8-bit octets, the canonical form of data representation used by both the client and server. o TELNET Standard TELNET protocol. o RLOGIN Standard RLOGIN protocol. /DELETE_SESSION Optional. Default: None. Specifies that TELNET should delete the specified pseudodevice (network terminal). For additional information, see the DELETE_ SESSION command. /LOG_FILE /LOG_FILE=file Optional. Default: No logging. An optional log file that contains all session output. Using this option does not affect your terminal output. You cannot use this option for TN3270 sessions. /NOINTERACTIVE Optional. Default: TELNET command mode. Disables the capability of using the escape character to leave a session and return to the TELNET prompt. This option is useful when the TELNET command is referenced in a command procedure in a captive account. /PORT /PORT=n Optional. Default: 23. Remote port to which you want your TELNET process to connect. Specify only if you are connecting to a host that does not use the standard TELNET port. /TERMINAL_TYPE /TERMINAL_TYPE=type Optional. Default: None. The IBM or DIGITAL terminal to emulate. Enter the full specification for one of these terminals: o IBM-3278-2 o IBM-3278-3 o IBM-3278-4 o IBM-3278-5 o VT100 o VT200 o VT300 o VT400 o VT500 /UNBIND_SESSION /UNBIND_SESSION network_device terminal_device Optional. Unbinds a network device (BGx:) from a TELNET terminal device (TNAx:) that was initially bound by a BIND_SESSION command or qualifier. 2 Examples 1.$ TELNET TELNET> ENABLE DEBUG TELNET> SET TERMINAL /DEVICE=VT300 Terminal type is set to VT300 TELNET> CONNECT DEBTS This example: o Starts TELNET. o Customizes the environment. o Establishes a connection to host DEBTS and sets up the terminal type as VT300. 2.$ TELNET MYCOM /TERMINAL_TYPE=IBM-3278-2 Establishes a TELNET connection to remote host MYCOM and runs TN3270. 3.$ TELNET 22.214.171.124 Establishes a TELNET connection to the host at IP address 126.96.36.199. 4.$ TELNET UCOM 31 Establishes a TELNET connection to remote host ucom at port 31.