- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting queues in hp-ux B.11.23
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
11-09-2010 12:29 PM
11-09-2010 12:29 PM
I want to create a script but i am not sure where the configuration is created (paths, configuration files, etc) when a queue is added into the system.
Also i need to make a backup before deleting the configuration of all those 2000 printers.
Please give me suggeestions.
Note: i know that i can do it using sam but i need to create the script instead of delete one by one.
Solved! Go to Solution.
- Tags:
- lpadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 12:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 12:49 PM
11-09-2010 12:49 PM
Re: Deleting queues in hp-ux B.11.23
removequeue -q dilbert -f
when this command is used, what configurations files are deleted? (what path? )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 12:51 PM
11-09-2010 12:51 PM
Re: Deleting queues in hp-ux B.11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 12:54 PM
11-09-2010 12:54 PM
Re: Deleting queues in hp-ux B.11.23
what is the difference in using below commands?
removequeue -q queuename -f
lpadmon -xqueuename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 12:57 PM
11-09-2010 12:57 PM
Re: Deleting queues in hp-ux B.11.23
Something to do with save and restore spooler config. Lots of threads about this:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1011463
>I only need to delete 2000? can I do that manually?
Do you have a list of them?
for printer in $(< delete-list); do
lpadmin -x$printer
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 02:14 PM
11-09-2010 02:14 PM
Re: Deleting queues in hp-ux B.11.23
thanks a lot ..
i would like to know what directory paths are affected when i apply
lpadmin -x$printer
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 02:20 PM
11-09-2010 02:20 PM
Re: Deleting queues in hp-ux B.11.23
FILES
/var/spool/lp/*
/var/adm/lp/*
/etc/lp/*
/usr/lib/lp/*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 06:15 PM
11-09-2010 06:15 PM
Re: Deleting queues in hp-ux B.11.23
what is the difference in using below commands?
removequeue -q queuename -f
lpadmon -xqueuename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 06:44 PM
11-09-2010 06:44 PM
Re: Deleting queues in hp-ux B.11.23
> removequeue -q queuename -f
This is part of the hppi package for HP JetDirect print interfaces. It is not designed for remote printers or direct-connect printers such as serial or parallel.
lpadmon -xqueuename
I believe you meant lpadmin -x and this is the lp spooler command to remove remote and direct-connect printers, but not HP JetDirect connections.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2010 11:03 AM
11-11-2010 11:03 AM
Re: Deleting queues in hp-ux B.11.23
could you please let me know what directories or files should i create a backup in case i need to recover some printer configuration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2010 11:10 AM
11-11-2010 11:10 AM
Re: Deleting queues in hp-ux B.11.23
> what directories or files should i create a backup in case i need to recover some printer configuration?
As Dennis suggested, use SAM. Look at the thread he referenced, for example.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2010 05:21 PM
11-12-2010 05:21 PM
Re: Deleting queues in hp-ux B.11.23
Since recreating a printer is a simple one line command, before you delete a bunch of printers, you need to document all the printers starting with lpstat -v. For remote printers, you just need the 3 values: local queuename, remote server IP or hostname, and the remote printer name. For JetDirect printers, the local queuename and remote IP or hostname is all you need unless the printer is not connected. Then you'll need to provide the printer ID number. After collecting this into a couple files, you'll be able to recall a deleted printer in a few seconds of typing.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2010 06:31 PM
11-16-2010 06:31 PM