1838263 Members
4078 Online
110125 Solutions
New Discussion

NIS problems

 
Craig Williams
Frequent Advisor

NIS problems

Hi there,

I am trying to set up a HPUX11 server as a NIS CLIENT but am unable to get it working correctly.

I am getting the below error messages when I run /sbin/init.d/nis.client start:-

Sorry, udp is unable to open a connect to ypbind on xxxxxx

Has anybody got any ideas on what could be causing this?

Thanks
Craig
1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: NIS problems

Hi Craig:

Knowledge Base document #KBRC00005709 describes your error:

/begin_quote/

Look on the NIS Client and check the /var/yp/secureservers file and the IP
Broadcast address using these two procedures.

FIRST POSSILBE CAUSE: /var/yp/secureservers

Most often we have seen this problem occur because /var/yp/secureservers has been modified or tampered with. Although you may not think it has been modified in any way, we find the best solution is as follows:

First, move /var/yp/secureservers out of the way

# mv /var/yp/secureservers /var/yp/secureservers.save

Second, restart NIS client: /sbin/init.d/nis.client start

If the problem is resolved then the /var/yp/secureservers file was the cause.

This file provides a marginal assurance that you are binding to a valid NIS server as a security measure. However, it is often incorrectly configured and/or out of date after a network configuration change. The securenets(4) man page provides documentation of both the /var/yp/securenets (NIS Server) and /var/yp/secureserverss (NIS Client). A template copy is also available in /usr/newconfig/var/yp/secureservers .

If this first procedure did not resolve the problem, then continue on debugging with the next procedure.

SECOND POSSIBLE CAUSE: IP Broadcast address incorrect.

Less often we have seen this problem occur if the broadcast address of the Lan interface(s) isn't as expected.

First, Use the ifconfig against each of the lan interfaces to check the IP broadcast address. If it is not correct, use the following steps in this procedure to see if it resolves the problem.

Example of IP broadcast address appearing as expected:

# ifconfig lan0
lan0: flags=843 inet 145.17.184.50 netmask ffffff00 broadcast 145.17.184.255

Example of broadcast address appearing incorrectly:

# ifconfig lan0
lan0: flags=843 inet 145.17.184.50 netmask ffffff00 broadcast 145.17.184.128

Second, correct the IP address if it was incorrect. You can either use SAM -> Networking/Communications -> Network Interface Cards to change, or the ifconfig command to resolve it. For example:

# ifconfig lan0 inet 145.17.184.50 netmask 255.255.255.0

Check your change with:

# ifconfig lan0

Third, try /sbin/init.d/nis.client start to see if the problem is resolved.

Fourth, if the problem is resolved, and if you did NOT use SAM to change the broadcast address, you need to edit /etc/rc.config.d/netconf file entry for the lan card's NETMASK and BROADCAST values.

If the problem is not resolved by either of these two procedures, then contact the HP IT Resource Center Forums or Electronic Support for further assistance.

/end_quote/

...JRF...