Previous | Contents | Index |
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 |
Some of the logging options are:
For a complete list of logging options, refer to the description of the
SET SERVICE command in the HP TCP/IP Services for OpenVMS Management Command Reference manual.
24.11 Using OpenVMS Flag Page Options
LPD supports all OpenVMS flag page print options, including:
To enable these features, use the VMS-Flagpages configuration option, as described in Table 24-1. This option applies to all print queues.
When you set the VMS-Flagpages option, LPD does the following:
Note that this configuration setting renders meaningless the
/PARAMETERS=NOFLAG qualifer to the DCL command PRINT.
24.12 Solving LPD Problems
24.12.1 Obtaining LPD and TELNETSYM Debugging Information
To display debugging information for LPD or TELNETSYM, set the
TELNET_UTIL_DEBUG logical name.
24.12.2 Obtaining LPD and LPR Diagnostic Messages
In addition to the LPR and LPD symbionts, the LPD receiver logs diagnostic messages to the error log file specified in the printcap database (as described in Section 24.5.1.2).
Use the Symbiont-Debug and Receiver-Debug configuration options to control LPR/LPD diagnostic information recorded in the log files.
Symbiont-Debug and Receiver-Debug are bit-mapped values. The low-order three bits turn on all diagnostics generated by either the sender or the receiver.
To define these logical names, set the following bits in the value:
If you set the fourth bit, the LPD symbiont logs each buffer that it sends over the TCP/IP link, and the LPD receiver logs each buffer that it receives from the TCP/IP link. The log files let you see exactly what the LPD is sending (for outbound jobs) and receiving (for inbound jobs).
To set the fourth bit, enter:
Symbiont-Debug: 8 Receiver-Debug: 8 |
For example, to obtain all diagnostic information, set both options to 15.
Note that using these settings during normal system operation can affect the performance of LPD and may produce large log files.
For more information about the LPD configuration options, see Table 24-1.
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 like LATSYM, the symbiont for local area transport (LAT) software.
The TELNET symbiont performs the following functions:
This chapter reviews key TELNETSYM concepts and describes:
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. TELNETSYM extends
the OpenVMS print symbiont by redirecting its output to a network
(TELNET) channel.
25.1.1 TELNETSYM Process Names
TELNETSYM sets its process names to TCPIP$TNS1, TCPIP$TNS2, and so on.
Each TELNETSYM process can control up to 32 print queues. You can
control the maximum number of print queues by defining the
TCPIP$TELNETSYM_STREAMS logical, as described in Section 25.5.6.
25.1.2 TELNETSYM Modifications to the Output Stream
TELNETSYM adds escape (0xFF) bytes in the data stream so they are not mistakenly interpreted as TELNET protocol IAC commands.
TELNETSYM doubles any TELNET IAC characters found in the byte stream unless TCPIP$TELNETSYM_RAW_TCP is defined for the queue. The IAC character is a hexadecimal FF.
If the print job is queued with the /PASSALL qualifier, TELNETSYM sets up a binary TELNET channel by inserting IAC-DO-BINARY and IAC-WILL-BINARY escape sequences.
You can turn off this behavior by defining the logical name TCPIP$TELNETSYM_RAW_TCP for the queue. If you set this logical name, none of this processing is done.
The IAC-DO-BINARY sequence is 6 bytes, which are symbolically:
IAC, DO, BINARY, IAC, WILL, BINARY
The hexadecimal equivalents are:
FF,FD,00,FF,FB,00 |
TELNETSYM does not add any additional data to the stream other than that described. It does not insert form feed characters that were not present in the output from the OpenVMS print symbiont. Therefore, any additional characters observed as added to a print job come from the OpenVMS or other print symbiont (for example, HP PATHWORKS/Advanced Server for OpenVMS).
TELNETSYM can remove (suppress) any form feed (0x0c) characters that
the OpenVMS print symbiont adds to the beginning or end of print jobs.
Use the TCPIP$TELNETSYM_SUPPRESS_FORMFEEDS logical name to control this
function, as described in Section 25.6.4.1.
25.2 TELNETSYM Service Startup and Shutdown
The TELNETSYM service can be shut down and started independently of TCP/IP Services. This is useful when you change parameters or logical names that require the service to be restarted.
The following files are provided:
HP recommends that you place the DCL commands to start your TELNETSYM queues and define TELNETSYM logicals in the TCPIP$TELNETSYM_SYSTARTUP.COM command procedure. For more information about the commands to include, see the following sections:
To preserve site-specific parameter settings and commands, create the following files. These files are not overwritten when you reinstall TCP/IP Services:
Use the DCL command INITIALIZE/QUEUE to set up a TELNETSYM queue. Use the /PROCESSOR and /ON qualifiers as follows:
/PROCESSOR=TCPIP$TELNETSYM |
/ON="hostname:portnumber" |
For example, to set up a TELNETSYM queue named xyz_q to print using TELNETSYM to host printserver.xyz.com at TCP port 4242, enter:
$ INITIALIZE /QUEUE /PROCESSOR=TCPIP$TELNETSYM - _$ /ON="printserver.xyz.com:4242" xyz_q |
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.
In this case, TELNETSYM saves the output stream to a temporary file and then submits the file to the destination queue.
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 |
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. You must stop and restart the print queue to establish the changes you make with logical names.
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.
25.5.1 Controlling the Print Stream
If a remote printer supports a raw network data connection rather than the TELNET protocol, you can print to such a printer by suppressing all TELNET modifications of the output stream with the following logical names:
OPCOM messages sent by TELNETSYM include the name of the execution queue. In addition, each TELNETSYM queue has a log file named TCPIP$TELNETSYM_queue-name.LOG.
By default, TELNETSYM sends messages to the operator and records error and informational messages in the file TCPIP$TELNETSYM_queue-name.LOG. This file is located in SYS$SPECIFIC:[TCPIP$LPD].
You can use logical names 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:
Bit 0 |
Tracks the flow of code. For example:
xyz-n-xyz-routine entered |
Bit 1 |
Tracks the allocation of memory. For example:
just freed address 7F0000 |
Bit 2 | Logs the bytes sent and received over TCP/IP link. |
$ DEFINE /SYSTEM TCPIP$TELNETSYM_DEBUG 4 |
$ DEFINE /SYSTEM TCPIP$TELNETSYM_LOG_KEEP 3 |
$ DEFINE /SYSTEM TCPIP$TELNETSYM_SCRATCH device:[directory.path] |
The TELNETSYM configuration logical names allow you to set TELNETSYM parameters. To see the default values for these parameters, enter the following command:
TCPIP> SHOW PROTOCOL TCP /PARAMETER TCP Delay ACK: enabled Window scale: enabled Drop count: 8 Probe timer: 150 Receive Send Push: disabled disabled Quota: 61440 61440 |
The logicals that you can use to modify these parameters are:
$ DEFINE/SYS TCPIP$TELNETSYM_KEEPALIVE 1 |
$ DEFINE/SYS TCPIP$TELNETSYM_DROPTIME x |
$ DEFINE/SYS TCPIP$TELNETSYM_PROBETIME x |
If a network link has not been established, the TELNET symbiont attempts to establish 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" |
By default, TELNETSYM releases an established 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 also 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" |
Idle time occurs during printing as well as between print jobs. Any idle time on the link can cause a timeout. Therefore, it is important to adjust the value of this logical carefully.
Previous | Next | Contents | Index |