Operating System - HP-UX
1819791 Members
3300 Online
109607 Solutions
New Discussion юеВ

How to empty the print queue

 
SOLVED
Go to solution
raiden
Regular Advisor

How to empty the print queue

Hello,

I have following jobs in one of our remote print queue JP02 which i want to empty but even after running the "cancel JP02" the print queue doesnt empty. Even i tried recreating the print queue but still the jobs are shown. Can anyone suggest me a solution to empty the print queue. Here is output of lpstat -oJP02 command.

s1padm (130 Paused 000ap2YL.S1P 428 4157 0 1
s1padm (130 Paused 003crseX.S1P 429 19837 0 1
s1padm (130 Paused 0047cbmD.S1P 706 5023 0 1
s1padm (130 Paused 0047cbmE.S1P 709 5023 0 1
s1padm (130 Paused 003tq6IT.S1P 721 4157 0 1
s1padm (130 Paused 003tqEoz.S1P 722 6671 0 1
root (130.1 Paused test 950 416 0 1
root (130.1 Waiting test 1355 416 0 1
root (130.1 Waiting test 1356 416 0 1
8 REPLIES 8
Siju Vadakkan
Trusted Contributor

Re: How to empty the print queue

The following command will clear the queue.


#cancel -e

1.Are u able to ping the print queue?

2.stop and start the scheduler
Confirm that the SCHEDLOCK file get removed from /varspool/lp after executing the #lpshut command.
and Then start the scheduler #lpsched
skt_skt
Honored Contributor

Re: How to empty the print queue

looks like your print queue is not wroking properly and not printing and never gettting cleared from the queue.

U may delete the pendng jobs from /var/spool/lp/request/qname too

since it is remote queue make sure that the Ip/print server it points has the print service running properly. TCP/IP print service..

is that working earlier?
Shibin_2
Honored Contributor

Re: How to empty the print queue

Hi,

To delete all jobs, you can use the following command.

# cancel -e

Please check the connectivity of this print queue first. If connectivity is OK, clear the print queue and restart the print queue. Then try a test print. If that is not working, check whether any lock file existing; if so, clear and restart the scheduler.

Thanks.
Regards
Shibin
Bill Hassell
Honored Contributor

Re: How to empty the print queue

Is this an HP-UX computer system? Those messages do not correspond to a typical lpstat -o from HP-UX. If this is HP-UX, aree you using some 3rd party printing application that replaces the HP-UX commands?


Bill Hassell, sysadmin
AL_3001
Regular Advisor

Re: How to empty the print queue

Hi Raiden,

Got to the path where spool requests are present i.e

cd /var/spool/lp/request/JP02

rm *.*

This will clear your print queue.

Regards,
Ashish
raiden
Regular Advisor

Re: How to empty the print queue

Thanks all for your answers.

I have tried most of solution given here. I did cancel -e JP02 but still the jobs exists. Also tried disabling/enabling the queue and also restarting scheduler.

@ Ashish ----> there is no file in /var/spool/lp/request/JP02 which confuses me further. The problem seems as if the queue is not getting refreshed.

@ Bill ---> Yes indeed it is a HP-Ux system and there is no 3rd party printing application installed.
OldSchool
Honored Contributor
Solution

Re: How to empty the print queue

but...you are "remote" printing, correct?

I've seen similar issues when using Windows print servers from HP boxes. The job description and the file to print get transferred to the destination print server. If they get hung there, they will still show in your lpstat list.

You need to look at the print queue on the destination print server.
raiden
Regular Advisor

Re: How to empty the print queue



Hello "Old School"

Yes you are right ....these files are hunged in the queue of the remote Windows print server, I contacted the concerend team and they checked and indeed they are hunged there. They will clear it now.

this solution had just slipped out of my mind.. Thanks for enlighting.