The SET HOST command connects you to another processor on a network.
(The SHOW NETWORK command lists the names of nodes accessible to your
node.) Once the connection is made, the remote processor prompts for a
user name and password. You must have an account on the remote
processor to log in.
Once you have connected to the remote processor and have logged in, you
can use DCL commands just as you would on your local processor. You can
even use the SET HOST command to connect to another remote processor.
For example, if your local node is BOSTON, you can use the command SET
HOST ALBANY to connect to the node ALBANY. You can then use the command
SET HOST AKRON to connect (still through BOSTON and ALBANY) to the node
AKRON.
Use the LOGOUT command to log out of the last processor you have logged
in to and return to the previous processor. For example, when you use
the LOGOUT command, you have logged out of (and disconnected from) the
processor at node AKRON, but you are still logged in (and connected) to
the processor at ALBANY. A second LOGOUT command logs you out of node
ALBANY, and disconnects you from it. A third LOGOUT command logs you
out of the local processor, BOSTON.
You can also abort operations and return directly to the original host
processor, if necessary. Press Ctrl/Y at least two times in rapid
succession. The following message is displayed:
Are you repeating ^Y to abort the remote session?
|
If you respond Y or YES, control returns to the original node. Other
responses, such as N or NO, do not abort the connection. This technique
is useful when you want to exit quickly without entering a series of
LOGOUT commands, or when part of the network becomes disconnected and
you want to return to the host.
Note that SET HOST, unlike the OpenVMS terminal driver, buffers output
data from an executing program. Buffering improves performance in
wide-area networks; however, in the case of programs providing output
only, the buffering causes a discrepancy between what is
happening in the remote program and what is displayed on the local
terminal. That is, a program might finish executing before you see the
output on the local terminal.
This discrepancy can be particularly confusing when you use the Ctrl/Y
or the Ctrl/C function, or out-of-band abort characters to abort the
execution of a program. For example, when you press Ctrl/Y or Ctrl/C
(or enter out-of-band abort characters) during the execution of a
captive command procedure, SET HOST immediately stops the display on
the local terminal. It also aborts the current read and write
operations and any pending write operations, including all buffered
write operations.1 Therefore, although it seems that
the remote program aborts at the point in the program at which the
display on the local terminal is stopped, the program might have
executed beyond that point already---and might have finished
executing---before you pressed Ctrl/Y.
Note that several SET HOST qualifiers, such as /MOP, /VTP, and /X29,
are available only if DECnet-Plus is installed on your system. For
information about using these qualifiers, type the following command:
In this example, the name of the local node is CASLON. This SET HOST
command connects the user terminal to the processor at the network node
named ITALIC. The remote processor then prompts for user name and
password. Use the normal login procedure to log in to the remote
processor.
Once you are logged in at a remote node, you can use the SET HOST
command to establish communication with another node. After logging in
to node ITALIC, you could type SET HOST BODONI.
You would again be prompted for a user name and password. If you then
supply a valid user name and password, you will be logged in to node
BODONI.
Note that when you log out of node BODONI, control is returned to node
ITALIC. You must log out of node ITALIC to return to your local node,
CASLON.