AIX print queue is stuck

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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Maen Abu-TabanjehNetwork Administrator, Network ConsultantCommented:
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>
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!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AIX25Author 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!
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Maen Abu-TabanjehNetwork Administrator, Network ConsultantCommented:
so did you solve the problem or not yet?
"disable" does what the name suggests - it disables the queue, but leaves the jobs untouched. "enable" makes the queue retry processing these jobs.
AIX25Author 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 ConsultantCommented:
Can you rule out printer hardware issues?

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

Something in "errpt"?
Can you ping that printer?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.