- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lpadmin -x<printer> failing
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
04-30-2009 09:36 AM
04-30-2009 09:36 AM
lpadmin -x<printer> failing
lpshut
lpadmin -xprint101
lpadmin: can't open class file
lpsched
lpstat -t | grep print101
device for print101: /dev/null
print101 accepting requests since Apr 29 15:23
printer print101 is idle. enabled since Apr 29 15:35
My question:
How do I get the system to remove this print queue from the spooler? "sam" gives the same error, and "jetadmin" does no better and only states "Cannot delete print101!". The only extra information I have is that print101 was a memeber of a print class, but that print class has been deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 12:07 PM
04-30-2009 12:07 PM
Re: lpadmin -x<printer> failing
- Check if there are any pending pring jobs on the class or on the printer that you are trying to delete. "lpstat -o" or "ps -fu lp"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 12:30 PM
04-30-2009 12:30 PM
Re: lpadmin -x<printer> failing
"lpstat -c" returns nothing as expected
"lpstat -o" retuns no entries
I am really at a loss since I can print to print101 fine, but just cannot delete as shown in my original post. I had used teh commands below earlier to add print101 to a new class and then later delete the class:
lpshut
lpadmin -pprint101 -g0 -cTestClassPrint
lpadmin -porljfac -g7 -cTestClassPrint
lpsched
...
lpshut
lpadmin -xTestClassPrint
lpsched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 01:43 PM
04-30-2009 01:43 PM
Re: lpadmin -x<printer> failing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 06:03 PM
04-30-2009 06:03 PM
Re: lpadmin -x<printer> failing
cd /var/spool/lp
cat /dev/null > pstatus
cat /dev/null > qstatus
cat /dev/null > outputqjobs that are in the
Also remove any leftover files and directories in /etc/lp/interface and /etc/lp/class.
Now add a printer and verify normal operation.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 08:57 PM
04-30-2009 08:57 PM
Re: lpadmin -x<printer> failing
Would using SAM's save and restore LP config work? Or would it copy the corruption?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 10:14 PM
04-30-2009 10:14 PM
Re: lpadmin -x<printer> failing
Bill: your approach along with some specifics was more helpful in that it made me believe stronger the all the files were intact but most likley one or more corrupted ...but using your approach was definitely a last resort
Dennis: your approach for using "/usr/sam/lbin/lpmgr" would do as you thought ...simply make a backup copy of a corrupted spooler configuration
In my case as described above there was some "mild" corruption and below was how I resolved it:
lpshut
rm /etc/lp/interface/model.orig/print101 /etc/lp/interface/print101 /etc/lp/member/print101
rmdir /var/spool/lp/request/print101
lpadmin -pprint101 -v/dev/null -mlaserjet
lpadmin -xprint101
lpsched