1.LATCP> SET PORT LTA22: /APPLICATION /NODE=TS33EW /PORT=LN02
The SET PORT command in this example sets up port LTA22: as
an application port to be associated with the port named LN02
on the terminal server named TS33EW. This command associates
port LTA22: with a specific printer on the server. In the next
example, the SET PORT command associates a port with a set of
printers (designated by the service name PRINTER) on a terminal
server.
2.LATCP> SET PORT LTA19: /APP /NODE=TLAT1 /SERVICE=PRINTER /QUEUED
The SET PORT command in this example shows how to associate
a local logical port with a service (several printers) on a
terminal server. The command associates the application port
LTA19: with the service PRINTER on terminal server TLAT1. The
service PRINTER can be associated with one or more ports on
TLAT1. The /QUEUED qualifier specifies that the server offering
the service PRINTER can queue the remote connection request if
all ports offering the service are in use. See the description
of print operations in the OpenVMS System Manager's Manual for
information on setting up print queues.
3.LATCP> SET PORT LTA21: /DEDICATED /SERVICE=GRAPHICS
The SET PORT command in this example specifies that the
application port LTA21: on the local service node offers the
service GRAPHICS to users on terminal servers or on nodes that
support outgoing connections. GRAPHICS is a particular utility
or application program.
4.LATCP> SET PORT MAIL_PORT /SERVICE=MAIL/NODE=RMNODE
The SET PORT command in this example associates the port whose
logical name is MAIL_PORT with the dedicated service MAIL
on remote node RMNODE. The port logically named MAIL_PORT
was created with the CREATE PORT command (see Example 3 in
the discussion of the CREATE PORT command). The logical name
could also have been created with an OpenVMS DCL ASSIGN or
DEFINE command. On node RMNODE, a port must be dedicated to
the service MAIL by using the SET PORT port-name /DEDICATED
/SERVICE=MAIL command.
5.$ LCP :== $LATCP
$ LCP CREATE SERVICE/LIMITED ONLY_ONE
$ LCP CREATE PORT/LIMITED LTA1234:
$ LCP SET PORT LTA1234: /SERVICE=ONLY_ONE
This series of commands, which includes the SET PORT command,
creates a limited service that allows only one user to log in
to the system through that service. When a user connects to
service ONLY_ONE by responding to the terminal server prompt
(Local>), the user is assigned port LTA1234 and then prompted
for the user name. Any user who attempts to connect to the
same service while LTA1234 has a user logged in receives the
"service in use" message.