Name

lpq

Synopsis

Displays the status of a print queue on a TCP/IP print server running the LPD daemon.

Syntax

lpq -S servername -P printername [-l]

Options

-S servername

The name or IP address of the LPD print server

-P printername

The name of the print queue on the server

-l

Verbose output

Examples

Display status of print queue for the network printer BROTHER on TEST :

                     lpq -S 172.16.11.104 -P brother
  Windows 2000 LPD Server
  Printer \\172.16.11.104\brother

Owner Status Jobname Job-Id Size Pages Priority
------------------------------------------------------
Administrator Printing Test Page 513 103793 0 0

Notes

  • lpq can query non-LPD print servers as well (for example, Microsoft Windows print servers). You cannot use lpr to send jobs to these print servers, however.

  • You can query the TCP/IP print queue on the local machine by typing:

    lpq -S localhost -P printername

See Also

lpr

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.