Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing 2 static print jobs from a print queue

Status
Not open for further replies.

jpor

Technical User
Nov 29, 2000
212
GB
Hi Guys,

Came in this morning to find that the qdaemon subsystem had failed @ 8:00am this morning. In turn I have a script in place in the Cron which re-enables things like this. Unfortunately I now have 2 print jobs stuck in a print queue. Although any new jobs supersede it and print out. I have gone into both /var/spool/lpd/qdir and /var/spool/qdaemon and removed the 2 correct entries. But the 2 jobs still show up in the queue. Before this also tried moving the 2 suspect jobs to another queue without success and also tried cancelling the print queue and the jobs seperately. Any ideas?

Thanks in advance.

( "To become Wise, first you must ask Questions")
 
Tried smit qcan. It runs with OK. But the 2 jobs are still showing.


( "To become Wise, first you must ask Questions")
 
Could you post the lpstat output for the queue?


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
RodKnowlton. Here is the output as requested for the print queue using lpstat:

Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
partsla hp@pa READY
QUEUED 203 STDIN.190862 informix 1 1 1
QUEUED 204 STDIN.58996 informix 1 1 2

( "To become Wise, first you must ask Questions")
 
That looks like a JetDirect queue.

Have you done a power-off reset on the printer and/or its JetDirect server/card?

Since you got rid of the files in /var/spool, it might make sense that the ghost spools are being reported by the remote device.




Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
I'll give it a go. Thanks RodKnowlton.

( "To become Wise, first you must ask Questions")
 
Rebooting the HP Jet Direct has not fixed the problem. I have a feeling a process is keeping these 2 jobs in place. But when I do a ps -ef |grep partslab is just shows the printer being executed via inetd.


( "To become Wise, first you must ask Questions")
 
Okay. I have now solved this. Just in-case anyone else has this problem, this is what I did:

went back to /var/spool/lpd/qdir

Found that the 2 files had re-spawned themselves.
To remove them I had to list each file by inode number:

ls -li

Then I checked the corresponding inode numbers by using:

find . -inum <Inode number> -exec ls {} \;

Then ran the following to delete:

find . -inum <inode number> -exec rm {} \;

Once done the 2 entries have now gone from the print queue.


( &quot;To become Wise, first you must ask Questions&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top