- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to empty the print queue
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-02-2008 10:10 AM
тАО04-02-2008 10:10 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 11:32 AM
тАО04-02-2008 11:32 AM
Re: How to empty the print 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 11:50 AM
тАО04-02-2008 11:50 AM
Re: How to empty the print 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 04:57 PM
тАО04-02-2008 04:57 PM
Re: How to empty the print queue
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.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 06:21 PM
тАО04-02-2008 06:21 PM
Re: How to empty the print queue
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 10:33 PM
тАО04-02-2008 10:33 PM
Re: How to empty the print queue
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 03:29 AM
тАО04-03-2008 03:29 AM
Re: How to empty the print queue
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 06:52 AM
тАО04-03-2008 06:52 AM
SolutionI'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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 10:24 AM
тАО04-03-2008 10:24 AM
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.