We help IT Professionals succeed at work.

AIX print queue is stuck

AIX25
AIX25 asked
on
I ran a qchk and see that the prints are stuck. Then ran a "disable -c printerA" and then "enable printerA". Still the queue is stuck. Any help?

servername:/usr/local/> qchk -P pinterA
Queue   Dev   Status    Job Files              User         PP %   Blks  Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
printerA @prin RUNNING   849 STDIN.16384068     user@tx    0  0   250   1   1
              QUEUED    851 STDIN.11599914    user@tx            99   1   2
              QUEUED    852 STDIN.21692544    user@tx            53   1   3
              QUEUED    861 STDIN.10223672    user@tx           165   1   4
              QUEUED    774 STDIN.3080236      user@tx          1677   1   5
              QUEUED    776 STDIN.9502830      user@tx           785   1   6
              QUEUED    780 STDIN.9044066      user@tx          1021   1   7
              QUEUED    781 STDIN.3080256      user@tx           294   1   8
              QUEUED    938 STDIN.7209130      user@tx            41   1   9
              QUEUED    195 STDIN.17694958    user@tx           167   1  10
              QUEUED    653 STDIN.15007986    user@tx            41   1  11
Comment
Watch Question

Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011

Commented:
try this :

stopsrc -s qdaemon
cd /var/spool/lpd/qdir
rm *
cd /var/spool/lpd/stat
rm *
cd /var/spool/qdaemon
rm *
cd /var/spool/lpd
rm *
startsrc -s qdaemon

You may have to re-enable your queues

enable <quename>
Most Valuable Expert 2013
Top Expert 2013
Commented:
Issue just this command to cancel all jobs of the affected queue and you're done:

qcan -X printerA

Please note that it's an Uppercase X!

wmp

Author

Commented:
jordannet, I cannot try your method if there is a chance I have to re-enable my queues. This is on our print master server which has over 5,000 queues and don't want anything reported by users.

I used wmp's method and it worked great! Not sure why "disable -c printerA" didn't work, it disable the queue and cancels all job requests???

Thank you wmp! Much appreciated for all your input guys!
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011

Commented:
so did you solve the problem or not yet?
Most Valuable Expert 2013
Top Expert 2013

Commented:
"disable" does what the name suggests - it disables the queue, but leaves the jobs untouched. "enable" makes the queue retry processing these jobs.

Author

Commented:
I talked to early....

When I ran qcan -X printerA, it cleared the queue. I ran a qchk -P printerA...I saw the clear empty. But, the user requeued his jobs and it still gets stuck. What could be the issues???

Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011

Commented:
Most Valuable Expert 2013
Top Expert 2013
Commented:
Can you rule out printer hardware issues?

Out of paper?
Offline?
Out of memory due to jobs being too big?
Wrong datastream format?

Something in "errpt"?
Can you ping that printer?