HP Distributed Print Service Administration Guide

Chapter 9 267
Managing Spoolers, Queues, and Logical Printers
Managing Jobs in Queues and Spoolers
Resubmit all of the jobs to a specific logicalprinter. See “Resubmitting
Jobs to Different Logical Printers” shortly.
Querying for Jobs in the Queue
Use the pdq command to query jobs in a specific queue. You can query
jobs in a queue by querying any logical printer that sends jobs to that
queue. Sometimes you need to determine which jobs are in a queue; you
might be responding to a backlogged queue, or you might be planning to
disable a physical printer or printers associated with the queue for a long
time. Or you might need to pause the queue for a while. After you disable
the physical printer or pause the queue, HPDPS does not schedule any
jobs in the queue with a state of pending. Jobs in the pending, paused,
and held states remain in those states indefinitely and do not print. You
can use the pdrm command to remove the job or resubmit the job with the
pdresubmit command.
Use the following procedure to determine which jobs are currently in a
queue.
1. If you do not know already, determine which logical printer or
printers are associated with the queue. For example, to determine the
logical printers associated with the queue Queue3, enter:
pdls -c queue -r logical-printers-assigned Queue3
HPDPS displays information similar to the following:
Queue3: logical-printers-assigned = LogPrt5
LogPrt6
2. Use the -U and -p flags with the pdq command to query the jobs. The
-U flag indicates that you are querying for all jobs, regardless of the
users who sent them. Use the -p flag to specify the name of a logical
printer sending jobs to the queue.
For example, to query all jobs in the queue Queue3, enter:
pdq -U -p LogPrt5
HPDPS displays information similar to the following:
Current Printer Printers
Job ID Name State Jobs Requested Assigned
--- ---------------- ---------- ---------- ---- --------- --------
10 Spool2:4629300046 pallstart processing 0 LogPrt5 PhyPrt2
14 Spool2:4629300057 error.log pending 1 LogPrt5
15 Spool2:4629300075 cobby.txt held 2 LogPrt6