Operating System - HP-UX
1832690 Members
2701 Online
110043 Solutions
New Discussion

Print jobs sitting in the print queue

 
Miro Klima
Advisor

Print jobs sitting in the print queue

Whenever I send a print request to the printing from one of the servers, the job just sits in the queue. I don't have a problem printing from any other server. When I do a netstat -rn, I see that there is a route to the printer. What else should I check?
12 REPLIES 12
Sanjay_6
Honored Contributor

Re: Print jobs sitting in the print queue

Hi,

Is the spooler running and the queue enabled. Since the job is sitting over there, that means the queue is accepting requests.

do "lpstat -t"

Restart lp spooler if necessary,

/usr/lib/lpshut
/usr/lib/lpsched

Hope this helps.

Regds
Miro Klima
Advisor

Re: Print jobs sitting in the print queue

Yes, the printer is enabled and I tried stopping/starting the scheduler... NOTHING!

Any other suggestions?
Sanjay_6
Honored Contributor

Re: Print jobs sitting in the print queue

Give us some info.

What type of printer is this. Direct connected or network. Hp or non-hp. How is it configured. Jetdirect / hpnp or what. Attach the lpstat output if you can. Do you see any error message in syslog / any other log file. What happens when you send a print job to this printer. Does it give any error message or anything. If the printer is connected through lan / network, can you ping it. Can you pysically power off / on the printer.

Regds
Paul F. Carlson
Valued Contributor

Re: Print jobs sitting in the print queue

Is the printer on a jetdirect box? If the print queue is enabled, try disabling it, then re-enabling it.
Link down -- cable problem?
Geoff Wild
Honored Contributor

Re: Print jobs sitting in the print queue

Can you provide output:

/opt/hpnpl/bin/hpnpadmin -v PRINTQUEUE

Run the attached script - output like:

# lpst W052

PING pcr12169.mydomain.com: 64 byte packets
64 bytes from 192.168.163.184: icmp_seq=0. time=6. ms
64 bytes from 192.168.163.184: icmp_seq=1. time=7. ms

----pcr12169.mydomain.com PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/7

printer W052 is idle. enabled since Feb 19 14:17
fence priority : 0
device for W052: /dev/null

Output Requests
-----------------------------------------------------------
no entries

scheduler is running


While I'm here - can you re-create the printer on your HP-UX box?

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.
Bill Hassell
Honored Contributor

Re: Print jobs sitting in the print queue

Delete the printer and add it back again. If this does not fix the problem, make sure you are up to date on network, spooler and JetDirect patches.


Bill Hassell, sysadmin
Rita C Workman
Honored Contributor

Re: Print jobs sitting in the print queue

We had a couple printers that 'somehow' kept getting IP's changed every time they were turned off. Seems they got DHCP'd.
So the IP had to be adjusted for DNS and the host file. After we would fix everything the jobs would hang until we disabled/enabled the printer again.
Any chance something like this happened ?

Just a thought,
...Rita...

(Yeah, we got the Novell guy to fix them to static IP's..)

Bharat Katkar
Honored Contributor

Re: Print jobs sitting in the print queue

Did you configured priortites of the Jobs to printed using lpfence.
If so then low priority Jobs won't get executed and keeps on sitting in the queue.
Try changing the lpfence priority.
Check for your Print Request Priority setting if you have done any.

Regards,
You need to know a lot to actually know how little you know
Cheryl Griffin
Honored Contributor

Re: Print jobs sitting in the print queue

Check your permissions, owner, group on the lp files, including model.orig.

"Downtime is a Crime."
Miro Klima
Advisor

Re: Print jobs sitting in the print queue

Printer: HP LaserJet 4000TN
JetDirect: Yes
Connection: LAN


No information in the /syslog. When I send a print request, it just sits in the print queueâ ¦ No errors are displayed.

Iâ ve deleted/added the printer, stopped/re-started the spooler, disabled/enabled the printer, and ping returns 0% packets loss. Iâ m not up to date on patches, but I havenâ t made any changes to the network... it just stopped printing a week ago. Oh, I didnâ t configure the priorities of the jobs printed using lpfence.

Any oth
Abdul Rahiman
Esteemed Contributor

Re: Print jobs sitting in the print queue

Have you tried sending the job to a different queue by lpmove ? If it doesn't work, then the problem could be due to a corruption in the spooled file, just a thought.
No unix, no fun
Bill Hassell
Honored Contributor

Re: Print jobs sitting in the print queue

Bypass the print spooler comapletely and send a job using hpnpf:

/opt/hpnpl/bin/hpnpf -x 12.34.56.78 -N /etc/hosts

(where 12.34.56.78 is the IP address of the printer) If this does not work, run hpnpadmin to see if the protocol and connection are OK:

/opt/hpnpl/bin/hpnpadmin -v 12.34.56.78

If hpnpf works, then delete the printer and add it back using addqueue rather thn SAM or hppi:

lpshut
lpadmin -x oldprinter
/opt/hpnpl/bin/addqueue -q newprinter -h 12.34.56.78
accept newprinter
enable newprinter
lpsched

Now try printing something simple.


Bill Hassell, sysadmin