Library /sys$common/syshlp/helplib.hlb  —  TCPIP Services, TELNET  Toggling  Examples
    1. The following example toggles between remote UNIX host biway
       and the local OpenVMS system.

       biway> <Ctrl/]>  (characters not echoed)
       TELNET> SHOW STATUS
       Session  1 Active  Host biway Port 23
           Operating Mode: Character-at-a-time
           Escape character: '^]'
           Options:
              Echo - Remote
              Terminal Type - Local
              Terminal Type - VT300
              Suppress Go Ahead - Local
              Suppress Go Ahead - Remote
           Terminal Dataoveruns:    0
           Suspended Network I/Os:  0

          .
          .
          .
       TELNET>  <Return>
       biway>

    2. In the next example, user BENTLEY, working at OpenVMS node
       EAGLE, uses TELNET to do the following:

       1. Establish a connection to UNIX host fern.

       2. Return to the local TELNET prompt.

       3. Display status.

       4. Establish a connection to host gannet.

       5. Return to the TELNET prompt.

       6. Display status.

       7. Connect to sands. But sands closes the connection because
          BENTLEY incorrectly enters the password three times.

       8. Try to resume the session with gannet. However, RESUME
          without specifying a session number fails:

          -  With multiple sessions, RESUME's default is the
             "active" session, the one with the most recently opened
             connection.

          -  The host to which BENTLEY connected most recently is
             sands. However, because BENTLEY incorrectly typed
             the password during login, sands closed the TELNET
             connection and displayed the following:

             No current session.

          -  Because no connection is active (or current), BENTLEY
             must specify a session number on the RESUME command
             line.

       $ TELNET FERN
          .
          .
          .
       fern> <Ctrl/]>   (characters not echoed)

       TELNET> SHOW STATUS
       Session  1 Active  Host FERN
          .
          .
          .
       TELNET> CONNECT GANNET
          .
          .
          .
       gannet> <Ctrl/]> (characters not echoed)
       TELNET> SHOW STATUS
       Session  2 Active  Host GANNET
           Operating Mode: Character-at-a-time
           Escape character: '^]'
          .
          .
          .
       Session  1 Waiting Host FERN

       TELNET> CONNECT SANDS
       %TELNET-I-Trying, Trying...11.18.222.95
       %TELNET-I-SESSION, Session 03, host sands, port 23
       -TELNET-I-Escape, Escape character is '^]'.
          .
          .
          .

       Username: BENTLEY
       Password:
       User authorization failure
       Username: BENTLEY
       Password:
       User authorization failure
       Username: BENTLEY
       Password:
       User authorization failure

       Remote connection closed

       TELNET> RESUME
       No current session
       TELNET> SHOW STATUS

       Session  1 Waiting Host FERN
       Session  2 Waiting Host GANNET
          .
          .
          .

       TELNET> RESUME 2

       gannet> <Ctrl/]>   (characters not echoed)
       TELNET> SHOW STATUS
       Session  2 Active  Host GANNET

           Operating Mode: Character-at-a-time
           Escape character: '^]'

          .
          .
          .

       Session  1 Waiting Host FERN
       TELNET>
Close Help