Previous | Contents | Index |
The attribute characters are displayed in reverse video, bold symbols. Attribute characters indicating numeric fields are also underlined. All other characters are displayed normally. Table 4-7 lists the attribute characters and their meanings.
Character | Meaning |
---|---|
n | Unprotected field with normal intensity follows |
N | Protected field with normal intensity follows |
d | Following unprotected field is light-pen-detectable |
D | Following protected field is light-pen-detectable |
h | Following unprotected field has high intensity |
H | Following protected field has high intensity |
i | Unprotected nondisplay field follows |
I | Protected nondisplay field follows |
To start TELNET, issue either the TELNET command or the TN3270 command at the DCL prompt.
To use TELNET commands, enter them at the TELNET> prompt.
This section provides complete descriptions of each TELNET command. The related ENABLE and DISABLE commands are presented together (see the description for ENABLE).
Establishes a TELNET connection between your local system and a remote host. You can run one session or up to ten simultaneous sessions (only one session if you invoke TN3270).
CONNECT host [ port* [ terminal_type ] ]
* Required if you specify terminal type.
open host [ port ] [ terminal_type ]
host
Required.Remote host to which you want to connect.
port
Optional without terminal_type.
Required with terminal_type.
Default: 23.TELNET port on the remote host. Specify this parameter if:
- You are invoking TN3270.
- You are connecting to a host that does not use the standard TELNET port.
terminal_type
Optional. Default: model of your physical terminal.Terminal model that you want your physical terminal to function as. Specify one of the following:
- For a session running TN3270, the terminal model to emulate. Enter one:
- IBM-3278-2
- IBM-3278-3
- IBM-3278-4
- IBM-3278-5
- For a non-TN3270 session, any terminal type recognized by the remote host, such as VT100, VT200, VT300, VT400, and VT500.
#1 |
---|
TELNET> CONNECT MYBUD |
Establishes a TELNET connection to remote host MYBUD.
#2 |
---|
TELNET> CONNECT DEBTS 23 IBM-3278-2 |
Establishes a TELNET connection to remote host DEBTS and runs TN3270. Your terminal functions as an IBM-3278-2 model terminal. For syntactical reasons, specifying a port number is required.
#3 |
---|
TELNET> CONNECT 130.180.5.5 |
Establishes a TELNET connection to the host at IP address 130.180.5.5.
#4 |
---|
TELNET> CONNECT REVIN 31 |
Establishes a TELNET connection to remote host revin. The connection is at port 31 on revin.
#5 |
---|
% [Ctrl/]] (characters not echoed) TELNET> CONNECT QUIK . . . % |
During a TELNET session with a UNIX host, pressing Ctrl/] escapes to the TELNET prompt. Another CONNECT command establishes a second session, this one to UNIX host quik.
Creates a TELNET terminal device (TNAx:) and connects to a network device (BGx:). If successful, returns the TNA device name (TNAx:) in the DCL symbol $TELNET_DEVICE. Network input and output operations may then be performed through the created TELNET device using terminal driver $QIO operations.
BIND_SESSION network_device [ /PROTOCOL=option ]
network_device
Required.An existing network device.
/PROTOCOL=option
Optional. Default: NONE.Where option is:
- NONE
Data is sent with no interpretation (raw).- 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.- TELNET
Standard TELNET protocol.- RLOGIN
Standard RLOGIN protocol.
TELNET> BIND_SESSION BG393: /PROTOCOL=NVT |
Establishes an outbound TELNET pseudodevice (network terminal) and connects it to a remote listener (port).
CREATE_SESSION host port [ unit ]
[ /[ NO ]TIMEOUT=option ]
[ /PROTOCOL=option ]
host
Required.Remote host to which you want to connect.
port
Required.TELNET port on the remote host.
unit
Optional. Default: 0The decimal number specifying the unit number for the pseudodevice (TNAx). The default "0" specifies that the DIGITAL TCP/IP Services for OpenVMS software should pick the next available unit number. If the requested unit number is already in use, the DIGITAL TCP/IP Services for OpenVMS software picks the next available unit number. In all cases, the software notifies you of the unit number chosen.
/TIMEOUT
/NOTIMEOUT
Optional. Default: /NOTIMEOUT
- /TIMEOUT
Creates a TNA device which has the following connection attributes:
- NOIDLE---The connection is broken when the device is finally deassigned. The device will automatically reconnect when data is written to it.
- IDLE---Specifies the idle time for the device. If the device is idle for at least the specified amount of time (note that the time has a granularity of one second), then the connection will be broken. Idle means that the device has neither received nor set any data for the idle period.
- NORECONNECTION---The device does not automatically retry reconnections if they fail.
- RECONNECTION---When data is written to the device and it is not connected, this value determines the interval between reconnection attempts. For example, if an application writes to a TNA with a RECONNECTION-0:1:00, then if the first connection attempt fails, subsequent connection attempts will be made in one-minute intervals.
- /NOTIMEOUT
Creates a TNA device which breaks the connection when the device is finally deassigned (the last channel assignment is deassigned)./PROTOCOL=options
Optional. Default: NONE. Options include:
- NONE
Data is sent with no interpretation (raw).- NVT
Network Virtual Terminal (NVT), TELNET's internal representation of a standard network terminal. NVT format is standard 7-bit USASCII code transmitted in 8-bit octets, the canonical form of data representation used by both the client and server.- TELNET
Standard TELNET protocol.- RLOGIN
Standard RLOGIN protocol.
TELNET> CREATE_SESSION DEBTS 23 2 |
Establishes a network terminal known as TNA2 and connects this device to port 23 on remote host DEBTS.
TELNET> CREATE_SESSION /TIMEOUT=(NOIDLE, RECONNECTION=NN) |
Creates a device which disconnects on deassignment and reconnects when data is written to it.
TELNET> CREATE_SESSION /NOTIMEOUT |
Creates a device that is not reusable: the device disconnects on deassignment and is deleted.
TELNET> CREATE_SESSION /TIMEOUT=(IDLE=0:0:30, RECONNECTION=0:2:00) |
Creates a device which times out after being idle for 30 seconds and which retries connection attempts at 2 minute intervals.
Deletes an outbound TELNET pseudodevice (network terminal) created by the CREATE_SESSION command. If the device was not created with the CREATE_SESSION command, the command returns an error.
DELETE_SESSION unit
unit
Required.The decimal number specifying the unit number of the pseudodevice (TNx) to be deleted.
TELNET> DELETE_SESSION 2 |
Deletes the network terminal known as TNA2.
Terminates the current remote connection.If you terminate a session with a remote OpenVMS host, the connection is closed by your local host. However, the process on the remote host is still running. To terminate it, issue a LOGOUT command.
DISCONNECT
close
Enables or disables the automatic flushing of output when you send the interrupt character.
- Enabled --- The data in the data buffer remains visible until the buffer is empty.
- Disabled --- The data buffer is emptied and the display is terminated. This provides fast system response to the interrupt character.
Default: ENABLE AUTOFLUSH.
ENABLE AUTOFLUSH
DISABLE AUTOFLUSH
toggle autoflush
Enables or disables the sending of the synchronization and interrupt characters in urgent mode.
- Enabled --- The local host sends an interrupt character in urgent mode, and the remote host immediately processes it.
- Disabled --- TELNET sends the interrupt character in sequence with the other characters in the stream, and the remote host processes this character in the sequence received.
Default: DISABLE AUTOSYNCH.
ENABLE AUTOSYNCH
DISABLE AUTOSYNCH
toggle autosynch
Enables or disables the transmission of data in binary mode.
- Enabled --- The EOL (end-of-line) character is not mapped to Return LF (the carriage return / line feed combination).
Use ENABLE BINARY when the remote host expects each line to end with a carriage return / line feed combination.
Binary mode provides interaction when the remote host:
- Expects special characters
- Does not support automatic negotiation of the TELNET binary option
- Disabled --- EOL is sent as Return LF (the carriage return / line feed combination).
Default: DISABLE BINARY.
ENABLE BINARY
DISABLE BINARY
toggle binary
Enables or disables the sending of carriage returns as Return LF (the carriage return / line feed combination) at the end of each line.
- Use ENABLE CRLF if the remote host expects Return LF at the end of each line.
- Use DISABLE CRLF if the remote host interprets Return as Return LF, which is CR mode.
Default: ENABLE CRLF.
ENABLE CRLF
DISABLE CRLF
toggle crlf
Enables or disables the mapping of received carriage returns. With this mapping, the remote host sends each line with Return LF (the carriage return / line feed combination) at the end of each line.
- Use ENABLE CRMOD if your terminal expects each line to end with Return LF.
- Use DISABLE CRMOD if your terminal expects Return null at the end of each line.
Default: DISABLE CRMOD.
ENABLE CRMOD
DISABLE CRMOD
toggle crmod
Enables or disables the display of data in hexadecimal.
- Enabled --- Data is displayed in both hexadecimal and readable text.
- Disabled --- Data is displayed in readable text.
Default: DISABLE DEBUG.
ENABLE DEBUG
DISABLE DEBUG
toggle netdata
% [Ctrl/Z] (characters not echoed) TELNET> enable debug [Return] TELNET> display [Return] . . . Will print network data flow in hexadecimal . . . TELNET>)resume [Return] SEND [ 0] D A RCVD [ 0] D A RCVD [ 0] 746E7069782E6C6B672E6465632E636F6D3E20 % ls [Return] SEND [ 0] 6C RCVD [ 0] 6C l SEND [ 0] 73 RCVD [ 0] 73 s SEND [ 0] D A RCVD [ 0] D A RCVD [ 0] 62696E20202020202020... RCVD [ 32] 7074 D A french.estud.oiseau russian.estud.ptitsa fences typescript verio % |
Escapes from a session with a UNIX host, enables debug mode, resumes the session, and asks for a list of files in the working directory. Both hexadecimal data and readable data are displayed.
Enables or disables the translation of the following terminal control characters in to TELNET protocol sequences:
- Interrupt
- Flush Output
- Are You There
- Kill
- Erase
- Quit
With local characters:
- Enabled --- The local host sends the control characters (listed above) translated in to TELNET sequences. For example, Ctrl/T becomes IAC AYT.
Enabled mode is appropriate when the remote and local hosts implement different control characters. The remote host does not recognize certain control characters. Therefore, the local host interprets these control characters before sending them to the remote host.- Disabled --- The local host sends these control characters uninterpreted. They are interpreted by the remote host.
Before you communicate in disabled mode, ensure that the remote and local hosts use the same control characters.Default: DISABLE LOCAL_CHARS.
ENABLE LOCAL_CHARS
DISABLE LOCAL_CHARS
toggle localchars
Enables or disables the display of option negotiations between the local system and the remote host during the session.
- Enabled --- TELNET displays the option negotiations between your local system and the remote host.
- Disabled --- TELNET does not display the option negotiations. This mode is suitable for most communications.
Default: DISABLE OPTIONS_VIEW.
ENABLE OPTIONS_VIEW
DISABLE OPTIONS_VIEW
toggle options
Closes any open sessions, exits from TELNET, and returns to the DCL prompt.If you terminate a session with a remote OpenVMS host, the connection is closed by your local host. However, the process on the remote host is still running. To terminate it, issue a LOGOUT command.
EXIT
quit
Displays online help for TELNET or TN3270 commands.
HELP [ dcl_style_telnet_command ]
dcl_style_telnet_command
Optional.Specific TELNET command about which you want information.
#1 |
---|
TELNET> HELP CONNECT |
This command provides information about the CONNECT command.
#2 |
---|
TELNET> HELP OPEN |
This command displays: Sorry, no documentation on OPEN.
To get help for a command, enter the command name using DCL style.
Resumes an open TELNET or TN3270 session that you interrupted with the escape sequence. When you run simultaneous multiple sessions (TELNET only):
- To resume a particular session, specify a session number.
- To resume the active session, omit the session number.
- If no session is active, you must specify a session number.
Note
TELNET interprets the active session as the last session with which you communicated. If that communication ended with you logging out, you have no active sessions. However, you might have other waiting (alive) sessions.
RESUME [ session_number ] [Return]
[Return]
session_number
Optional. Default: the active session.Use session_number when you run multiple TELNET sessions. It resumes the session with the specified number.
#1 |
---|
$ [Ctrl/]] (characters not echoed) TELNET> SHOW STATUS [Return] Session 1 Active Host FINDER . . . TELNET> RESUME [Return] $ |
This example:
- Starts at the prompt of remote OpenVMS host FINDER.
- Escapes from FINDER and returns to the local TELNET prompt.
- Issues SHOW STATUS, which displays one active session.
- Returns to FINDER's prompt.
#2 |
---|
% [Ctrl/]] (characters not echoed) TELNET> SHOW STATUS [Return] Session 2 Active Host LUNA . . . Session 1 Waiting Host SOLAR TELNET> RESUME 1 [Return] % |
This example:
- Starts at the prompt of UNIX host luna.
- Escapes from luna.
- At the TELNET prompt, issues SHOW STATUS, which displays two active sessions, the active one with luna and another with host solar, whose status is "waiting."
The RESUME 1 command returns to "waiting" host solar.
Previous | Next | Contents | Index |