1833294 Members
3162 Online
110051 Solutions
New Discussion

Network Error

 
prasathc
Frequent Advisor

Network Error

Hi All
I got a problme like "ypwhich: clnt_create error: RPC: Unknown host".

I have new B2600 machine, and i have started 11.11 OS installed on that machine. After installation, it not bound to that machine. When i try to put
ypwhich i'ts giving the error "ypwhich: clnt_create error: RPC: Unknown host", when i put swlist ERROR like
# swlist
# Initializing...
# Contacting target "hpcvl059"...
ERROR: Could not contact host "hpcvl059". Make sure the hostname is
correct and an absolute pathname is specified (beginning with
"/").
ERROR: More information may be found in the daemon logfile on this
target (default location is
hpcvl059:/var/adm/sw/swagentd.log).
#
I am able to ping all the machines.
Any one can help me in this regard.

Thanks in Advance
Prasath
8 REPLIES 8
Peter Kloetgen
Esteemed Contributor

Re: Network Error

Hi,

did you try to do the same command with IP- adress instead of hostname? This seems to be a name resolution problem!

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Mateja Bezjak
Respected Contributor

Re: Network Error

Hi,

Does nslookup work correctly?

Regards,
Mateja
Michael Tully
Honored Contributor

Re: Network Error

This certainly looks like a DNS problem. You should always try to resolve you DNS lookups locally first.
Anyone for a Mutiny ?
prasathc
Frequent Advisor

Re: Network Error

This is the answer of your questions.

# hostname
hpcvl059

# ifconfig lan0
lan0: flags=843
inet 15.70.175.59 netmask fffff800 broadcast 15.70.175.255

# nslookup cvlsys
ypwhich: clnt_create error: RPC: Unknown host
Name Server: chennai.india.hp.com
Address: 15.70.168.58

Trying DNS
Name: hpcvl175.india.hp.com
Address: 15.70.175.175
Aliases: cvlsys.india.hp.com

# nslookup 15.1.48.12
ypwhich: clnt_create error: RPC: Unknown host
Name Server: chennai.india.hp.com
Address: 15.70.168.58

Trying DNS
Name: hpfclc1.fc.hp.com
Address: 15.1.48.12

# ping hpfclc1.fc.hp.com
PING hpfclc1.fc.hp.com: 64 byte packets
64 bytes from 15.1.48.12: icmp_seq=0. time=301. ms
64 bytes from 15.1.48.12: icmp_seq=1. time=300. ms
64 bytes from 15.1.48.12: icmp_seq=2. time=300. ms

----hpfclc1.fc.hp.com PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 300/300/301

# cat /etc/resolv.conf
domain india.hp.com
nameserver 15.70.168.58 # CHENNAI.INDIA.HP.COM
nameserver 15.10.40.3 # FAKIR.INDIA.HP.COM

And also when i try to reboot the machine it's failed in
"configure LAN interface FAILED" after that NIS server not responding still trying, same message repeated.

what should i do.

Prasath
Steven Sim Kok Leong
Honored Contributor

Re: Network Error

Hi,

Regarding your swlist errors,

Check that hpcvl059 can be resolved:

# nslookup hpcvl059

If you cannot resolve hpcvl059, check that it is defined in either /etc/hosts or in the DNS. Also, check the resolution sequence in /etc/nsswitch.conf as well:

# cat /etc/hosts
# cat /etc/nsswitch.conf

Hope this helps. Regards.

Steven Sim Kok Leong
Ceesjan van Hattum
Esteemed Contributor

Re: Network Error

Could not contact target does not mean he can or cannot contact the host hpcvl059.
Maybe your default targetpath is not set correctly.
Try "swlist -t /var/adm/sw"

Regards,
Ceesjan
Johan Gjestvang
Frequent Advisor

Re: Network Error

Hi,
you may solve the problem by
checking/correcting your /etc/nsswitch.conf file.
You have a file called
/etc/nsswitch.nis This file look like this:

# /etc/nsswitch.nis:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#

passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis

If you allready have a /etc/nsswitch.conf file, make a backup copy of it before you do cp /etc/nsswitch.nis /etc/nsswitch.conf

Best Regards,
Johan Gjestvang
pap
Respected Contributor

Re: Network Error

Hi It seems that the NIS server you are using to bind this host to is not available. Please check the file /etc/rc.config.d/namesvrs and look for the entry "ypset" whether it is bindi to NIS slave server or master server?

Otherwise look for name resolution order in /etc/nsswitch.conf , host name entry in /etc/hosts file.

Thanks,
-pap
"Winners don't do different things , they do things differently"