Windows Server 2003 in a Nutshell

lpq

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

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 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 can't use lpq 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 , Printing

Категории