Operating System - HP-UX
1829777 Members
1715 Online
109992 Solutions
New Discussion

adding printer with hp jetadmin

 
Maurice Peterse
Frequent Advisor

adding printer with hp jetadmin

Hello,

when i try to add a printer (there's already 340 on the system) i get a
can't find /etc/spool/lp/interface/printername

this file is normally made by the adding itself
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: adding printer with hp jetadmin

Since you have already added 340 printers to your system, you obviously know how to run JetAdmin. I suspect that the shell or an executable is reaching a space limit. I would try to add a new printer with the addqueue command which is non-interactive. Man addqueue
for details.
-- Hope this helps.
If it ain't broke, I can fix that.
Maurice Peterse
Frequent Advisor

Re: adding printer with hp jetadmin

this resulted in
"could not create the queue"
A. Clay Stephenson
Acclaimed Contributor

Re: adding printer with hp jetadmin

Are you certain that the printername does not already exist?
e.g. lpstat -p | grep "printername" returns nothing.
If it ain't broke, I can fix that.
Maurice Peterse
Frequent Advisor

Re: adding printer with hp jetadmin

printername does exist, but that's the weird part. i can't remove it anymore and i can't add a queue to the name.

u happen to be on msn-messenger?
A. Clay Stephenson
Acclaimed Contributor

Re: adding printer with hp jetadmin

No, not on msn-messenger.
Next step:
lpadmin -xprintername to manually remove the device.
Now let's see if it is really gone.
cd /var/spool/lp/interface/model.orig
ls printername (if found remove it)
cd ..
ls printername (if found remove it)
lpshut
cd /var/spool/lp/request
ls printername (if found rm -r printername)
lpsched
That should remove the printer and you should then be able to add it as usual.

If it ain't broke, I can fix that.
John Waller
Esteemed Contributor

Re: adding printer with hp jetadmin

I don't know whether the above has worked, but I've had problem in the past where I get a message "Printer has disapeared". The only solution was to use the restore printer configuration from within SAM. Unfortunatly to use this option you will have needed to run SAM to backup the printer configurations first. This all works even if you use jetadmin initially to add the printer.
Maurice Peterse
Frequent Advisor

Re: adding printer with hp jetadmin

lpadmin -xprintername returns a
"lpadmin: destination "printername" non-existent "

spool-dir. doesnt exist, neither does a request directory
and still i can't add it or delete it

lp- destination queue name does exist, and i want to remove that part, so i can reinstall the printer.