Lpr

KCM Core sends a spool file to any printer that understands the Line Printer Daemon protocol (Lpr). KCM Core cannot verify if the printer understands the data in the spool file.

The host must run an LPD daemon. This daemon must support the basic requirements as described in RFC 1179.

KCM Core does not support the optional switching of Control and Data files as described in section 6 of RFC 1179.

The Lpr protocol requires every client to submit its jobs using a unique 3-digit Job ID. Due to limitations in the Lpr protocol and the commonly used Berkeley implementation of the LPD daemon, KCM Core is not able to determine whether a Job ID conflicts with jobs pending on the host. Therefore, KCM Core uses a sequence file to generate sequential Job IDs. If there are multiple KCM Core services running on the same NT server who can submit jobs using the Lpr command, we strongly advise you to use the SequenceFile(<text>) parameter to specify the same sequence file for every server. This file should be located in a shared directory that can be accessed by every service.

Syntax

Lpr
   File(<text>)
   Host(<text>)
   Printer(<text>)
   User(<text>)
   Banner(<text>)
   SequenceFile(<text>)
   Connection(<text>);

Parameters

  • File: Required. The spool file that KCM Core sends to the printer.
  • Host: Required. The host where KCM Core sends the spool file.
  • Printer: Optional. The name of the printer that KCM Core prints to. This printer must be defined on the host. If this parameter is not specified, KCM Core sends the document to the default ("lp") printer.
  • User: Optional. The User ID that KCM Core uses when submitting the job. If this parameter is not specified, KCM Core sends the document with the User ID "itpds."
  • Banner: Optional. The text printed on the banner page. If this parameter is not set, KCM Core requests the host to suppress the banner page.
  • SequenceFile: Optional. Name of a file that KCM Core uses to generate sequence numbers. Use this setting when more than one KCM Document Processor is going to print to the host. You can set the same file for all Document Processors as they share it.
  • If this parameter is not set, KCM Core uses an automatically created sequence file in its installation directory, with one for each KCM Document Processor.
  • Connection: Optional. The range of network ports that KCM Core uses to attempt to connect to the LPD server.

    The range should be specified as:

    • Connection ("x") to use only port x
    • Connection ("x:y") to use ports x through y (inclusive)

    The default value for this parameter is Connection ("721:731").

RFC 1179 restricts the allowed source port range to ports 721 to 731. KCM Core by default only uses this range as the LPD server is allowed to refuse connections outside this range. It is possible for servers to exhaust the available ports if many jobs are sent in a short time frame to the same LPD server. In this situation you can use the Connection(..) parameter to expand the range of available network ports.

You cannot specify a range accepted by any LPD server, but you can use the same port range used by the Microsoft Windows NT LPR client (513 - 1023) as it should be accepted by most LPD clients.

This alternative range can be specified as Connection ("513:1023").