Operating System - HP-UX
1825764 Members
2085 Online
109687 Solutions
New Discussion

Re: Empty all print queues

 
RVilhelmsen1
Occasional Contributor

Empty all print queues

Hi

Using the command "cancel -a -f" will flush all print queues, as far as i understand.

But if there is a unknown host (unknown host ps_10connection to ps_10 is down)  the jobs stops at this unknown host and do not skip it and continue. 
Is their wanyway to force flushing all print queues dispite the state of the printer/queue?

Regards
Robert VIlhelmsen

2 REPLIES 2
Sahana_S
HPE Pro

Re: Empty all print queues

Hello @RVilhelmsen1 ,

1. Use the cancel command to remove all print jobs from the queues: cancel -a

2. If jobs remain in the queue, manually delete the spool files: eg: rm -f /var/spool/lp/request/printer-name/*

3. After clearing the queues, please restart the schedular to apply changes.

For more information, please refer to this document.

 

Thanks,
Sahana S

 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
RVilhelmsen1
Occasional Contributor

Re: Empty all print queues

Hi @Sahana_S 

Thanks. My real question is how do i handle the error messsage "unknown host" when the program do not proceed at this point?
It make sit difficult to schedule as a cron job.

root@serverx> cancel -a -f
Printer queue is empty.
unknown host ps_10connection to ps_10 is down

/Robert