This diagnostic utility is used to obtain status of a print queue on a host running the LPD server.
lpq -SServer -PPrinter [-l]
-SServer
Specifies the name of the host that has the printer attached to it.
-PPrinter
Specifies the name of the printer for the desired queue.
-l
Specifies that a detailed status should be given.