- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printer - can't delete
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
тАО09-17-2007 04:53 AM
тАО09-17-2007 04:53 AM
Printer - can't delete
Hi all,
I'm in that situation again where I need to remove a printer and just can't seem to be able to do it. I get a "printer non-existent" whenever I reference it. SInce getting the error I have:
Note: it is defined as a network printer
mkdir /var/spool/lp/request/printername
touch /etc/lp/interface/printername
touch /etc/lp/member/printername
chmod 755 all
chown lp:bin all
lpshut;lpadmin -xprintername
I have also done all the above, then tried
removequeue -q printername
I have had this problem in the past, can't remember how I got past it (but I didn't have to remove all of my printers)...also, I don't think that I can count on restore spool, as I haven't saved the spool recently.
Thanks in advance!!!!!!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 05:36 AM
тАО09-17-2007 05:36 AM
Re: Printer - can't delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 06:25 AM
тАО09-17-2007 06:25 AM
Re: Printer - can't delete
find . -name "xxx" -follow
where xxx is your printer name. you shouldn't find anything. if you do, remove it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 06:49 AM
тАО09-17-2007 06:49 AM
Re: Printer - can't delete
that won't remove the data about the queue from pstatus, qstatus, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 07:45 AM
тАО09-17-2007 07:45 AM
Re: Printer - can't delete
mkdir /var/spool/lp/request/printername
touch /etc/lp/interface/printername
touch /etc/lp/member/printername
chmod 755 all
chown lp:bin all
lpshut;lpadmin -xprintername
Did someone delete those files?
If so - you should restore them from your backup...
Then try to delete...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 11:40 AM
тАО09-17-2007 11:40 AM
Re: Printer - can't delete
did u try -f option with "removequeue"? and what is the exit code on failure?
paste the outputs of
lpstat -vqname;lpstat -oqname;lpstat -pqname;
lpstat -a|grep qname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 07:25 PM
тАО09-17-2007 07:25 PM
Re: Printer - can't delete
Try add your printername at /usr:
mkdir /usr/spool/lp/request/printername
Then, delete your printername via:
lpshut;lpadmin -xprintername
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2007 06:32 AM
тАО09-19-2007 06:32 AM
Re: Printer - can't delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2007 06:36 AM
тАО09-19-2007 06:36 AM