- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to remove printer
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
тАО11-27-2002 06:45 AM
тАО11-27-2002 06:45 AM
I've tried to add a network printer from the command line using lpadmin. I set the model incorrectly, and now want to delete the printer to readd it. I cannot delete the printer using
Have checked in /var/spool/lp and the printer files exist there also. However the printer is not listed if I run a strings on /var/spool/lp/pstatus or ~qstatus.
How can I delete the printer?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:00 AM
тАО11-27-2002 07:00 AM
Solution1) /usr/spool/lp/interface/
2) The dir /usr/spool/lp/request/
3) /usr/spool/lp/member/
If they don't simply create a "dummy" file by using touch and try lpadmin -x it again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:04 AM
тАО11-27-2002 07:04 AM
Re: Unable to remove printer
lpshut
Change to the /etc/lp/member directory and do a:
touch ID
Then do a:
chown lp ID
Change to the ../interface directory and do a:
touch ID
Then do a:
chown lp ID
Change to to /var/spool/lp/request directory and do a:
mkdir ID
Then do a:
chown lp ID
Next execute:
lpadmin -xID
Restart the spooler with a:
lpsched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:09 AM
тАО11-27-2002 07:09 AM
Re: Unable to remove printer
please recreate the missing subdirectory /usr/spool/lp/request/
Or try by setting following files to:
# >/var/spool/lp/qstatus
# >/var/spool/lp/pstatus
# >/var/spool/lp/default,
Regards,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:24 AM
тАО11-27-2002 07:24 AM
Re: Unable to remove printer
There are some remanants of the printer name existing under /etc/lp directory , incase you cannot delete it , you may try to reinstall it using the same name and then deldeting it ,
lpshut
lpadmin -p< old printer name > -v /dev/null -m rawlp
accept pritner name
enable printer name
and then lpadmin -x printer name
this will recretate the ques properly so taht u can delete it
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:27 AM
тАО11-27-2002 07:27 AM
Re: Unable to remove printer
I stopped the spooler, checked files existed under /etc/lp* and /var/spool/lp/*, and added the queue directory to /var/spool/lp/request, which was missing.Tried running
This errors with "lpadmin: can't remove printer", yet deletes the "ID" directory from /var/spool/lp/request. It doesn't delete any of the other files though. I've checked perms on all "ID" printer files, which are set to lp:lp, 755 on directories and 644 on files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:31 AM
тАО11-27-2002 07:31 AM
Re: Unable to remove printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:57 AM
тАО11-27-2002 07:57 AM
Re: Unable to remove printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 09:33 AM
тАО11-27-2002 09:33 AM
Re: Unable to remove printer
Thanks for your help.
;-)