Operating System - HP-UX
1820880 Members
3522 Online
109628 Solutions
New Discussion юеВ

Jobs are stuck in printer queue

 
Angie Meeks
Occasional Advisor

Jobs are stuck in printer queue

We have a couple of jobs that are stuck in the printer queue. The queue is printing other requests, so it's not that the queue is down. The reports are PCL so I am unable to look at them. Is there anything that I can do?

Our users have been complaining about Pack Slips that are not printing.
Thanks
Angie
9 REPLIES 9
Sanjay_6
Honored Contributor

Re: Jobs are stuck in printer queue

Is this env unix or windows ?.

Thanks
Angie Meeks
Occasional Advisor

Re: Jobs are stuck in printer queue

It is HP UX 11.0
Geoff Wild
Honored Contributor

Re: Jobs are stuck in printer queue

I find, that for whatever reason, a job is corrupted - but can't tell....

You can try moving those jobs to another queue, (but have that printer disabled so they don't print)...

disable/enable the printer that was stuck, then send a test job - make sure it prints...if Okay, one by one, move the jobs back....

If a job is stuck again - then delete it and have user resend...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Huib Freeke
Occasional Advisor

Re: Jobs are stuck in printer queue

Did you check your print commando's ?

try this for testing if files are corrupt
cat var/spool/lp/request/$printer/$file|hpnpf -x ***.***.*** -p port_number (9100)

This wil send the file raw to the printer
also as lp -oraw -d$printer $file
Eric Antunes
Honored Contributor

Re: Jobs are stuck in printer queue

Hi Angie,

Stop the printer spooler and restart it again.

Regards,

Eric Antunes
Each and every day is a good day to learn.

Re: Jobs are stuck in printer queue

#lpshut
#lpsched
will do
regards
SK
Your imagination is the preview of your life's coming attractions
Rick Garland
Honored Contributor

Re: Jobs are stuck in printer queue

Is it only the Pack Slips that are not printing? Only reports that are PCL format?

Could it be something in these reports that is causing the printer to stop, pause, go busy, etc? (What type of escape codes may be in these reports?)

Try printing these reports to another printer with a different model script.

Charlie Rubeor
Frequent Advisor

Re: Jobs are stuck in printer queue

From your previous posts, it seems you are using Zebra printers. Are these the printers that are giving you problems with the Pack Slips?

We also use Zebra printers and despite my best efforts, the queue will simply stop sending data to the printer. Issuing disable/enable commands will sometimes work, but most of the time, I have to use lpshut/lpsched. Please note, that restarting the scheduler like this will reprint any jobs that are currently printing. That could be a very bad thing for Packing Slips.

So, recapping, these are the steps I take whenever a print queue stops working.

#/usr/bin/disable name_of_print_queue
#/usr/bin/enable name_of_print_queue
#/usr/bin/lpstat -pname_of_print_queue

(check the printer. If it's printing, do not continue)

#/usr/bin/lpstat -o

(take note of anything that is currently printing.)

#/usr/bin/lpshut
#/usr/bin/lpsched

hth
Charlie Rubeor
Frequent Advisor

Re: Jobs are stuck in printer queue

Angie

I noticed that you have not been assigning points. Please take a little time to assign points to people who respond to your questions. On top of rewarding people who have taken time to help you, it helps people in the future to identify which answers solved the problem.