Previous Topic: z/OS USS – UNIX System ServicesNext Topic: Windows TCP/IP Printing


Windows LPR, LPQ, LPRM

If you are using the standard Windows system, be aware of the following printing considerations:

TCP/IP Network Printing Support

This support allows Windows to print directly over the network using TCP/IP. Select this option if you want to print to UNIX print queues or TCP/IP printers that are connected directly to the network, or if you want UNIX computers on the network to print to Windows print servers. To activate this support, select Microsoft TCP/IP Printing on the Network Service list in the Services Properties.

Creating an LPR-Compatible Printer

You can use the standard Windows print manager to create a TCP/IP LPR printer in the same way that you create any other printer to be used on a Windows network by using the following settings:

  1. In the Print Destinations dialog, select the LPR Print Monitor.
  2. In the Add LPR Compatible Printer dialog, specify the LPD Host name or IP address and the printer queue name.

Any print driver can be used, but with a report management product it might be a good idea to use the Generic Text driver or the AFP print driver.

LPR Command

From a command prompt, the LPR command can be used to print a file to a computer running an LPD server. Use the following syntax:

lpr -SServer  -PPrinter [-CClass] [-JJobname] [-Ooption] filename

where:

-Sserver

Specifies the name or IP address of the remote LPD.

-PPrinter

Specifies the name of the printer for the desired queue.

-Cclass

Specifies the content of the banner page for the class.

-Jjobname

Specifies the name of this job.

-Ooption

Indicates the type of file. The default is a text file.

Filename

Specifies the name of the file to be printed.

LPQ Command

From a command prompt, the LPQ command can be used to obtain printer queue status information from a remote LPD server. Use the following syntax:

lpq -SServer  -PPrinter [-l]

where:

-SServer

Specifies the name or IP address of the remote LPD.

-PPrinter

Specifies the name of the printer for the desired queue.

-l

Specifies that a detailed status must be given.

The LPQ command can only be used against CA Spool managed printer queues.