Operating System - HP-UX
1833759 Members
2310 Online
110063 Solutions
New Discussion

Unable to remove printjobs from scheduler

 
ITeam
Super Advisor

Unable to remove printjobs from scheduler

Server is RX7620 HPUX 11:23
We have a user printing to an aficio2090, the user has been unable to print to the printer, it is online and I've been able to telnet onto printserver - everything looks ok for it. I noticed quite a few old print jobs in the queue so I removed them using cancel. However,I am still seeing 10 jobs in the queue, I've tried cancelling them, but they still appear. I stopped (lpshut) and restarted the scheduler
(/usr/sbin/lpsched) but these jobs won't go. I've looked in the /var/spool/lp/request queue for this printer and it is empty.

I have just sent another print job to this printer and it went from the queue and shows in /var/spool/lp/log, however I can still see it in /var/spool/lp/request/printer2. I also checked to see if there were any errors on the print server and I see the following:

#[lpd(45)]07/11/26 13:39:35 Job Entry Failed. ERR:
#[lpd(45)]07/11/26 13:39:35 application not connected.

Does anyone know how I can remove these spurrious print requests and get the printer working?

Thanks in advance!


8 REPLIES 8
Geoff Wild
Honored Contributor

Re: Unable to remove printjobs from scheduler

Try:

cancel -e


Also, what is output of:

lpstat -p -v


Where is the queue name of your printer...


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.
skt_skt
Honored Contributor

Re: Unable to remove printjobs from scheduler

was that ever working fine? is it a new queue?is your test jobs really printing(check at printer side if it is really printing as you desired)?

I have seen similar scenario and it often happen when the end to end communication is broken.
whiteknight
Honored Contributor

Re: Unable to remove printjobs from scheduler

ITeam,

Please update this patch too.
PHCO_36440 11.23 lpspool cumulative patch

WK
Problem never ends, you must know how to fix it
ITeam
Super Advisor

Re: Unable to remove printjobs from scheduler

Thanks for responses.

I tried cancel -e printer2 but the print requests still remained.

The output of lpstat -p printer2 -v printer2

showed the printer status as being online, then the list of print requests, then it showed the printer being off-line and the same print requests.

I can ping the printer ok, and telnet onto the printserver, when I look in the logs on the printserver I see the following:

#[lpd(45)]07/11/27 08:02:57 Job Entry Failed. ERR:
#[lpd(45)]07/11/27 08:02:57 application not connected.

I have removed the printer - the jobs went, and I have recreated it through sam, I've just tried a test print and it is still in the queue, however it did show in /var/spool/lp/log. But it hasn't printed and the printerserver is still showing error message listed above.

This printer has been working previously - its not a newly added printer the user has another 2 of these printers and they are working fine.

I'll install the patch, but if anyone has any other ideas it would be greatly appreciated.

Many thanks - points on the way.

Aneesh Mohan
Honored Contributor

Re: Unable to remove printjobs from scheduler

Hi ITeam,

Please check the connectivity from the OS to printer,double check the printer is online ,enable the printer.

#enable queuename

If your printer is installed on jetdirect box then use the below command to check the settings

#/opt/hpnpl/admin/hppi -- to check the printer conf



Thanks,
Aneesh


ITeam
Super Advisor

Re: Unable to remove printjobs from scheduler

Connection is fine to the printer, as mentioned I can telnet to the printserver, printer queue is enabled and accepting print requests. The printserver is not jetdirect, I've created it as a remote printer as this printer is an AFICIO2090 printer.
ITeam
Super Advisor

Re: Unable to remove printjobs from scheduler

Problem sorted!

I cancelled the printjob that was stuck in the queue and got the user to powerdown the printer for a few minutes. I removed and recreated the printer, it is now printing fine.

I'm going to install the patch just as a precaution, but so far so good!

Thanks for everyone's responses - points on the way.
ITeam
Super Advisor

Re: Unable to remove printjobs from scheduler

See previous note.