1834077 Members
2434 Online
110063 Solutions
New Discussion

Can't remove printer

 
SOLVED
Go to solution
Doug Wheeler_1
Frequent Advisor

Can't remove printer

I have a misconfigured install of a printer and I can't remove it. When I attempt to remove it via SAM the message :
Lp destination "printer name" does not exist on "workstation name".
How can I remove this printer?
Thanks,
Doug
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

Re: Can't remove printer

Hi Doug,

Try - as root
lpadmin -xptr_name
(Note NO space between x & printer name)

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Rajeev  Shukla
Honored Contributor

Re: Can't remove printer

This is a SAM problem with the lpmgr script that was introduced with PHCO_23841.
The fix is to update to a newer SAM patch of edit the lpmgr script and change
the does_printer_exist function from this:

if lpstat $1 | grep $1 > /dev/null 2>&1


to this:

if lpstat -t | grep $1 > /dev/null 2>&1



The document is:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910397

Rajeev
Doug Wheeler_1
Frequent Advisor

Re: Can't remove printer

Thanks for the help. I tried Rajeev's suggestion first & I was able to remove the printer.
Doug