Operating System - HP-UX
1834165 Members
2031 Online
110064 Solutions
New Discussion

Re: Problems adding network printers

 
T Dockery
Advisor

Problems adding network printers

I am trying to add some HP LJ printers with JetDirect to an N4000 and an A400, both running HP-UX 11.11. If I try with hppi, I get "Addprinter error: can't find /etc/lp/interface/HDQ_ATG1". If I try addqueue, I get "Could not create the queue".

There are two network printer queues alread in place on the N4K, none on the A500.

I have reinstalled the hpnpl software, per a suggestion read in the forum. The current version is 10.18. I installed as root (not su), with umask of 0.

I checked permissions and ownership of /etc/lp, /etc/lp/interface, /var/spool/lp and its children.

I can ping the printers, telnet to them, even send a test print from hppi.

Still no results. What's left?

TIA,
Tom
11 REPLIES 11
erics_1
Honored Contributor

Re: Problems adding network printers

Question;

What is your permissions set to in /opt? Try with permissions set to 555 and then add the printer again.

Hope this helps!
Eric
T Dockery
Advisor

Re: Problems adding network printers

Nope, no improvement. /opt was already 555, /opt/hpnpl was/is 755, bin and admin were/are 755. Most of the files in bin were 700, and owned by bin:bin. I tried 755, but it didn't help.

Thanks,
-Tom
erics_1
Honored Contributor

Re: Problems adding network printers

At this point, I would swremove hppi and then swinstall it once more. It appears that you chose to reinstall it before.

Just a thought,
Eric
T Dockery
Advisor

Re: Problems adding network printers

Well, I just did that this afternoon, and it didn't solve the problem, so I feel disinclined to do it again. Identical actions give identical results, usually.
Rita C Workman
Honored Contributor

Re: Problems adding network printers

Have you tried just using good old fashined JetAdmin?
It is, in my opinion, still the best thing around for quick adding of network printers.

You can still download it at:
ftp.hp.com

/pub/networking/software
HP10d621.SD for 10.x
HP22d621.SD for 11.x

Just a thought,
Rita

Steve Steel
Honored Contributor

Re: Problems adding network printers

Hi


You have bad permissions somewhere

Seen before as

Addprinter error: can't find
/etc/lp/interface/PRINTER_NAME. was 665 on /opt

Should be 555

Thus I am adding a little script which will reset all printer permissions.

This is an own risk script but used many times

You can always backup first.

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
T Dockery
Advisor

Re: Problems adding network printers

Rita,

As far as I can tell, hppi *is* jetadmin, essentially, in its latest incarnation. It's installed in /opt/hpnpl, where jetadmin was in /opt/hpnp. Most of the binaries and scripts are the same. The menu is the same.

Steve,

Tried your script, still no dice. I concur that it's a permissions problem somewhere, but it's obscure.

What really puzzles me is that it's on two machines. Aside from HP-UX 11.11, with different patches, the only thing in common is OmniBack (A500 is OB manager, N4K is Oracle system), and they share a SAN.

Thanks,
-Tom
Steve Steel
Honored Contributor

Re: Problems adding network printers

Hi


look at
/opt/hpnp/admin/addptrtoq script.

Setup debug in this script:
#!/usr/bin/ksh
set -x
exec > /tmp/afile 2>&1

Try again and look in /tmp/afile for clues


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
T Dockery
Advisor

Re: Problems adding network printers

Added the suggested debug code, looked at the output, then tried calling lpadmin just as addptrtoq called it:

lpadmin -pHDQ_ATG1 -v/dev/null -orc -i/opt/hpnpl/sh/net_lj5x

I got "lpadmin: can't open member file". Everything I find says this is a permissions problem, but I can't find where.

Incidentally, I did check perms on the model script in the -i option, they were 755 bin:bin all the way down from opt.

Tom
T Dockery
Advisor

Re: Problems adding network printers

Thanks to a pointer from the HP support folks, I found the problem. It wasn't permissions exactly, it was the existence of Tclass and Tmember as directories in /etc/lp. Once I removed them, I could install printers again.

Where they came from, I don't know.

And the lived happily ever after...
rmueller58
Valued Contributor

Re: Problems adding network printers

Thanks This helped my situation too..

chown lp:lp Tclass, Tmember in /etc/lp

chmod 755 T* and the addqueue command worked again!!!