- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Empty all print queues
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 02:41 AM - last edited on 02-26-2025 09:59 PM by support_s
02-25-2025 02:41 AM - last edited on 02-26-2025 09:59 PM by support_s
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
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:13 AM
02-25-2025 06:13 AM
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]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 01:10 AM
02-26-2025 01:10 AM
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