Operating System - HP-UX
1825003 Members
2716 Online
109678 Solutions
New Discussion юеВ

Re: LP spooler - hpnpf unknown host

 
SOLVED
Go to solution
Kevin Liquori_1
Regular Advisor

LP spooler - hpnpf unknown host

We recently installed our first 11iv2 OS. I've installed hppi and can successfully add printers. They are enabled, accepting, show fine under lpstat, etc. When I try to print using 'lp', however, the job never completes. The queue disables and when I look in /var/adm/lp/log I see:

hpnpf: unknown host BOCMIS4

or whatever the relevant printer name is. On the command line I can resolve it (getip & ping work). In nsswitch.conf my hosts line is:

hosts: files [NOTFOUND=continue] dns

And I have all of the printers in /etc/hosts. If I change the hostname to the IP under /etc/lp/interface then it works with no problem. When I install the printers with hppi I provide the hostname, not the IP, and it appears to discover the printer correctly. This is happening with any printer I install and I am not seeing this behavior on my other systems (11iv1, 11.0).

Has anyone else encountered this?

TIA...Kevin
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LP spooler - hpnpf unknown host

The first thing that I would do is check the permissions on /etc/nsswitch.conf, /etc/hosts, /etc/resolv.conf, and while you are at it, /etc itself. This has to be a hostname lookup problem.
If it ain't broke, I can fix that.
Kevin Liquori_1
Regular Advisor

Re: LP spooler - hpnpf unknown host

Ah! I can't believe I missed that! I had hosts set to 600. Changing it to 644 fixed it. Thanks, Clay, you da man!

...Kevin
Kevin Liquori_1
Regular Advisor

Re: LP spooler - hpnpf unknown host

Thanks, Clay.
A. Clay Stephenson
Acclaimed Contributor

Re: LP spooler - hpnpf unknown host

When you troubleshoot as user root, you sometimes miss the obvious. Discipline yourself to only become root when absolutely necessary.
If it ain't broke, I can fix that.