- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove all printers from a system
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
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
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-22-2002 07:18 AM
тАО02-22-2002 07:18 AM
Thanks,
Craig
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2002 07:23 AM
тАО02-22-2002 07:23 AM
Re: Remove all printers from a system
Go into SAM -> Printers and Plotters -> LP Spooler -> Printers and Plotters
Once there just go down the list and select every printer on the list. If you are in the GUI, you must hold down the CTRL key as you click each printer. If you are in the TUI then you can just scroll with the arrows and hit the space bar to select each printer.
Once all are selected go up to the Actions menu and select Remove. It will then prompt you asking if you are sure you want to remove each printer. Say yes and each will be removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2002 07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2002 07:27 AM
тАО02-22-2002 07:27 AM
Re: Remove all printers from a system
lpadmin -x $PRINTER
done
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2002 07:31 AM
тАО02-22-2002 07:31 AM
Re: Remove all printers from a system
# for P in `lpstat|grep \^printer|awk '{print $4}'`
> do
> lpadmin -x$P
> done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2002 07:36 AM
тАО02-22-2002 07:36 AM
Re: Remove all printers from a system
#!/usr/bin/perl -w
open (PRINTERS, "printers.out") || die "$!";
@printers =
foreach (@printers) {
system "lpadmin -x$_";
};
printers.out is a list of the printers extracted from the /etc/lp directory.
Thanks for your help.
Craig