VMS Help  —  TCPIP Services, TELNET  Command Syntax
    Use the following rules when you enter a TELNET command line.

    o  Command formats

       With the TELNET command and most of the commands entered at
       the TELNET prompt, you can use either DCL or UNIX syntax. For
       example, the following two commands produce the same results:

       $ TELNET
       TELNET> SHOW PARAMETERS

       $ TELNET
       TELNET> DISPLAY

    o  Quotation marks

       Do not include quotation marks on the command line, as shown
       in the following examples:

       o  The TELNET command line:

          $ TELNET CENTRAL

       o  The TN3270 command line:

          $ TN3270 CENTRAL

       o  Commands at the TELNET prompt:

          TELNET> CONNECT CENTRAL

1  –  Example

    The following example connects to UNIX host migain and sets a
    terminal type with the /TERMINAL_TYPE qualifier. No quotation
    marks are needed to pass a terminal type to migain in lowercase,
    as demonstrated with the remote host's printenv command.

    $ TELNET MIGAIN /TERMINAL_TYPE=vt300
    %TELNET-I-Trying, Trying ...11.90.208.56
    %TELNET-I-SESSION, Session 01, host migain, port 23
    -TELNET-I-Escape, Escape character is '^]'

    Hello from UNIX host migain

    login: root
    Password:...
       .
       .
       .
    migain#  printenv

    TERM=vt300
    HOME=/
    SHELL=/bin/csh
    USER=root
    PATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/etc:.
    LOGNAME=root
    PWD=/
    migain#
Close Help