DIGITAL TCP/IP Services for OpenVMS
Management


Previous Contents Index

18.4 Starting and Stopping Print Queues

To start your print queues, enter the following command


$ @SYS$MANAGER:TCPIP$LPD_STARTUP 

To stop print queues, enter the following command:


 
$ @SYS$MANAGER:TCPIP$LPD_SHUTDOWN 

To display the status of a remote queue, enter the LPQ command at the DCL prompt. To remove jobs from a remote printer queue, enter the LPRM command at the DCL prompt. See DIGITAL TCP/IP Services for OpenVMS User's Guide for more information about these commands.

The following example deletes all the jobs on remote print queue EIDER_DOWN_Q:


$ LPRM EIDER_DOWN_Q /ALL

18.5 Controlling Access to Local Queues

You can grant or deny access to remote users by issuing the command SET SERVICE LPD /FLAGS=APPLICATION_PROXY. This causes LPD to authenticate remote users through the proxy database. You identify the remote users by adding communication proxy entries in the proxy database, TCPIP$PROXY.DAT. Each remote user allowed to access your local queues must have an entry.

To add a proxy entry, enter:


TCPIP> ADD PROXY user_name /HOST=host_name /REMOTE_USER=user_name

For each host, define both its host name and alias name. Use uppercase and lowercase consistently.

You may use wildcards when adding proxy entries for users on remote systems. For example, the following command allows any user on the remote host REMOTE1 to submit print jobs to the print queues on your system.


TCPIP> ADD PROXY R_USERS /HOST=REMOTE1 /REMOTE_USER="*" 

To disable authentication, use the /FLAG=NOAPPLICATION_PROXY option to the SET SERVICE LPD command. Use the /REJECT option to deny access from certain hosts. For example:


TCPIP> SET SERVICE LPD /REJECT=HOSTS=(loon,ibis,tern)

18.6 Receiving LPR/LPD OPCOM Messages

The LPR/LPD spooler can notify you of selected events with OPCOM messages. To receive these notifications, enter:


$ TCPIP SET SERVICE LPD /LOG=OPTION
$ REPLY /ENABLE=OPCOM

The logging options defined are:

18.7 Using OpenVMS FLAG PAGE Options

LPD supports all OpenVMS FLAG PAGE print options, including:

To turn on these features, define the system logical name TCPIP$LPD_VMS_FLAGPAGES. At queue startup time, enter:


$ DEFINE /SYSTEM TCPIP$LPD_VMS_FLAGPAGES 

When you define TCPIP$LPD_VMS_FLAGPAGES, LPD does the following:


Chapter 19
Setting Up and Managing the TELNETSYM

The TELNET print symbiont (TELNETSYM) provides remote printing services that enable the use of standard OpenVMS printing features not available with the LPR/LPD print service. With TELNETSYM configured on your system, you can set up and manage a remote printer attached to a remote terminal server as if it were directly connected to your system. The TELNET symbiont functions in a manner that is similar to that of LATSYM for DIGITAL's local area transport (LAT) software.

The TELNET symbiont performs the following functions:

This chapter reviews basic TELNETSYM concepts and describes how to set up and manage remote printers.

19.1 Reviewing Key Concepts

TELNETSYM transfers record-oriented data to and from disks and printers. Because TELNETSYM is a true OpenVMS print symbiont, it performs all print formatting functions, such as header and trailer page generation, pagination, queuing, and handling of multiple forms.

19.1.1 TELNETSYM Modifications to the Output Stream

TELNETSYM modifies the print output stream as follows:

TELNETSYM sets its process names to TCPIP$TNSYM1, TCPIP$TNSYM2, and so on.

19.2 Setting Up a Print Queue

Use the DCL command INITIALIZE/QUEUE to set up a TELNETSYM queue. Use the /PROCESSOR and /ON qualifiers as follows:

  1. Specify the TELNETSYM image name in the /PROCESSOR qualifier:
    /PROCESSOR=TCPIP$TELNETSYM
  2. Specify the host name and port number to which the queue sends the print data with the /ON qualifier:
    /ON="hostname:portnumber"

For example, to set up a TELNETSYM queue named xyz_q to print to host printserver.xyz.com at TCP port 4242, enter:


$ INITIALIZE /QUEUE /PROCESSOR=TCPIP$TELNETSYM - 
_$ /ON="printserver.xyz.com:4242" xyz_q 

19.3 Setting Up Relay Queues

You can redirect the output of TELNETSYM to another queue rather than sending it directly to a remote printer. A queue with this setup is a relay queue. Use relay queues to funnel fully formatted output to an outbound LPD queue. LPD transfers jobs that are fully formatted on the sending side by OpenVMS.

TELNETSYM saves the output stream to a temporary file and then submits the file to the destination queue. TCP/IP is not used.

To set up a TELNETSYM relay queue, specify the /ON qualifier of the INITIALIZE/QUEUE command as follows, where qname is the name of the queue to which you want TELNETSYM to send its output.


/ON="TCPIP$QUEUE:qname" 

To set up a TELNETSYM relay queue named RELAYQ_4 to send output to the queue named LPD_Q4, enter:


$ INITIALIZE /QUEUE /ON="TCPIP$QUEUE:LPD_Q4" - 
_$ /PROCESS=TCPIP$TELNETSYM /DEVICE=PRINTER RELAYQ_4 

19.4 Managing and Customizing Your Print Queues

You can manage and customize TELNETSYM for each print queue by defining logical names before you start the queue. Because the logical names are translated once at queue startup time, they can be defined differently for each TELNETSYM queue. Use the /SYSTEM qualifier when defining TELNETSYM logical names. This places the logical name in the system logical name table and makes it available to all users.

Some TELNETSYM configuration logical names are used to set a configuration option either ON or OFF. If the logical name is defined, the option is ON. If it is not defined, the option is OFF.

Other logical names require a specific value. The following sections describe TELNETSYM logical names. Descriptions indicate when a value is required.

19.4.1 Controlling Stream of Print Bytes Sent Over the Link

If a remote printer does not support the TELNET protocol, you can still print to such a printer by suppressing all TELNET modifications of the output stream with the following logical names:

19.4.2 Setting Up Error Logging

By default, TELNETSYM sends messages to the operator and records error and informational messages in the file TCPIP$TELNETSYM.LOG. This file is located in SYS$SPECIFIC:[TCPIP_LPD]. Logical names are available to modify the way the TELNETSYM logs information and the type of information it reports. For example, TELNETSYM can log diagnostic messages that you can use when troubleshooting problems with a link.

Use the following logical names to modify error logging:

19.4.3 Controlling Characteristics of the TCP/IP Link

TELNETSYM configuration logical names in this category correspond directly to item list options for the $QIO SETMODE function. Enter TCPIP SHOW PROTOCOL TCP /PARAMETER to see the default values for these SETMODE options.

19.4.4 Establishing a TELNETSYM Link

If a network link is unavailable, the TELNET symbiont attempts to open one. Printing starts when the link is successfully established. The TELNET symbiont continues to try to establish a network link until it is successful or until a retry interval you define has expired.

The logical name TCPIP$TELNETSYM_RETRY_INTERVAL defines the time for TELNETSYM to wait between link-establishment retries when link establishment has failed. The value for this logical name is an OpenVMS delta time.

If this logical name is not defined, TELNETSYM defaults to a wait period of 3 minutes between retries.

For example, to define a retry interval of 30 seconds, enter:


$ DEFINE /SYSTEM TCPIP$TELNETSYM_RETRY_INTERVAL "0 00:00:30.00" 

19.4.5 Releasing a TELNETSYM Link

By default, TELNETSYM releases an open link at the end of a print job. This behavior is useful when multiple systems contend for the same printer. Configuring TELNETSYM to release the link at the end of a job allows other systems to print quickly. However, this behavior can be a disadvantage because of the overhead involved with link creation for each print job.

When there is little or no contention for a printer, it is useful to configure TELNETSYM to release the link only after a certain period of idle time has passed. With this approach, TELNETSYM waits for the configured idle time to elapse and then closes the link. This option works well within batch printing applications.

Use the logical name TCPIP$TELNETSYM_IDLE_TIMEOUT to define the length of time to wait before terminating an inactive link. Specify a value that is an OpenVMS delta time.

For example, to define a link-idle-timeout of 10 minutes, enter:


$ DEFINE /SYSTEM TCPIP$TELNETSYM_IDLE_TIMEOUT "0 00:10:00.00" 

19.4.6 Setting the Number of Execution Queues

The logical name TCPIP$TELNETSYM_STREAMS defines the number of execution queues handled by each TELNETSYM process. The value you enter (a number from 1 through 16) when defining this logical name is passed to the PSM$PRINT system routine. The default is a maximum of 16 queues per symbiont process.

An important use of this logical is to turn TELNETSYM into a single-threaded symbiont (value=1) where each queue runs its own process. This makes diagnosing problems easier and lessens the consequences of a crash.

If you are defining this logical name, define it once. Do not define it differently for each TELNETSYM print queue.


Previous Next Contents Index