- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting a printer queue without stopping lpsched.
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
03-05-2004 04:04 AM
03-05-2004 04:04 AM
As I understand it. When you shutdown the spooler, lpsched, the queues will still accept print jobs but will stop all print jobs currently printing and resubmit them when lpsched is started back.
I have several hundred queues and it seem strange that I have to stop the scheduler for all the queues just to delete one queue. I read also that if you want to do a move of a job to another queue, lpsched will be shut down also.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:20 AM
03-05-2004 04:20 AM
SolutionThis has been a thorn in my side forever!! I know of no way to accomplish this without shutting down the spooler. The only way I deal with it as by doing any printer mainenance early, before the users come in and start beating on the system.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:29 AM
03-05-2004 04:29 AM
Re: Deleting a printer queue without stopping lpsched.
As Pete stated there are certain lp functions that cannot be accomplished *without* stopping the spooler - this is one of them.
Sorry,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:37 AM
03-05-2004 04:37 AM
Re: Deleting a printer queue without stopping lpsched.
You can delete /var/spool/lp/request/
And delete /var/spool/lp/interface(
You can then delete all the other sub-directories that have your printer name. I know it has worked because I did it my mistake once.
I don't think lpsched is too clever and although it has a file containing all the queue names, I think it re-builds it when you next restart it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:51 AM
03-05-2004 04:51 AM
Re: Deleting a printer queue without stopping lpsched.
The spooler must be stopped to "cleanly" remove printers...
Moves requests that were queued by lp(1) between LP destinations. This command can be used only when lpsched is not running.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2004 10:12 AM
03-06-2004 10:12 AM
Re: Deleting a printer queue without stopping lpsched.
Deleting printers in not quite so bad. Generally, you can accomplish this "more or less" using the reject command so that subsequent lp jobs fail upon submission. I would add a "-r" clause so that the users would know this printer will be deleted. You can also use the cancel command to clobber any outstanding print jobs for this printer.
You can now actually delete the printer when a maintenace window can be scheduled.
The far more difficult problem is adding new printers. My trick for that (which is the least evil method I've found over many years) is to intentionally create "spare" printers. These "spares" should be entirely consistant with your naming conventions and thus ready to go into service. The spare queues are fully configured (often as a clone of an actual, existing print queue) but are set to reject with -r "Spare Printer Queue; unavailable for use." as a reason. They are also disabled. Now, when I need to add a printer, I simply modify one of the "spare" printers by replacing the interface file(s) with the real version(s); issue an "accept" command; and finally an "enable" command. All of these can be done while lpsched is running. So finally, getting back to your original question, in most cases, rather than actually deleting the print queue, I issue a reject and disable and this one becomes part of the "spare" pool.