LPRng Reference Manual: 5 Sep 2003 (For LPRng-3.8.22)
Prev | Chapter 7. lpq - Status Monitoring Program | Next

# 7.3. lpq Short Format (lpq -s)

This is one line per spool queue:

        % lpq -sa
        t1@astart110  (printing disabled) 1 job
        t2@astart110  (routed/bounce to t1@h10.private) 0 jobs
        t3@astart110  (forwarding to t3a@h10.private)
        t3a@astart110  (forwarding to t2@h10.private)
        t4@astart110  (subservers t5, t6)  0 jobs
        t5@astart110  (serving t4) 0 jobs
        t6@astart110  (serving t4) 0 jobs

Note that the name of the printer/host is first, followed by optional status information, followed by the number of jobs. Only printcap entries with spool queues have a jobs word in the last position. The -a literal forces status for all queues or the queues in the all printcap entry to be returned.

The stalled_time (default 120 seconds) printcap option can be used to set a time after which active jobs will be reported as stalled.

Prev | Home | Next
lpq Job Selection | Up | lpq Long Format (lpq, lpq -l, lpq -L)