Operating System - HP-UX
1834150 Members
3785 Online
110064 Solutions
New Discussion

Re: Jetadmin: Printer not deleted from spool

 
Cvg_1
Occasional Contributor

Jetadmin: Printer not deleted from spool


Hi all,

Jetadmin wouldn't let me add a printer to the spooler because it regarded it already as added (yet it didn't exist in /var/spool/lp/request), here's the message:

Enter the lp destination name (default=p4353, q - quit): p2345

p1646 exists already. Try another name!


So I've tried to delete it but it wont let me because apparently it doesn't exist either. Message:

Enter the lp destination name (q - quit): p2345
lpstat: "p2345" not a request id or a destination


Cannot delete p2345!


Is there any way I can delete it? As said before, the printer doesn't exist in /var/spool/request, neither in /var/spool/lp/interface/model.orig.


Regards,

Ciro
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: Jetadmin: Printer not deleted from spool

Why does it say "p1646 exists already" when you are adding p2345?

Looks like some sort of conflict with that printer name..

If you don't need p1646 , then delete it, then try adding p2345

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Cvg_1
Occasional Contributor

Re: Jetadmin: Printer not deleted from spool

Sorry, I didn't edit the message and didn't notice I pasted the wrong output, here's the two messages again:

When I try to add it:

Enter the lp destination name (default=p4353, q - quit): p2345

p2345 exists already. Try another name!

When I try to delete it:

Enter the lp destination name (q - quit): p2345
lpstat: "p2345" not a request id or a destination


Cannot delete p2345!


Sorry again for the mistake.
OldSchool
Honored Contributor

Re: Jetadmin: Printer not deleted from spool

Check both /var/spool/lp/interface and /etc/lp/interface for evidence of either name. You're going to be looking for a name like "p2345*" or "p1646*".

I suspect (but cannot prove) that p1646 is linked to p2345, either a "hard" or "symbolic" link.
OldSchool
Honored Contributor

Re: Jetadmin: Printer not deleted from spool

ok, i'm missed a post. disregard the stuff about a link. however; you still need to check both directories and manually remove files as necessary
Geoff Wild
Honored Contributor

Re: Jetadmin: Printer not deleted from spool

You shouldn't remove files unless you really know what you are doing.

It could be the reason you are in this state now.

Try this:

lpshut ; lpadmin -xp2345 ; lpsched -v


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Cvg_1
Occasional Contributor

Re: Jetadmin: Printer not deleted from spool

Hello,

It's solved now, thanks for your help. I hadn't deleted any file though. Apparently this printer was "added" by someone else.


Thanks and regards,

Ciro