Operating System - HP-UX
1837076 Members
2581 Online
110112 Solutions
New Discussion

Re: Problems with NIS server and some clients

 
Carles Viaplana
Valued Contributor

Problems with NIS server and some clients

Hello,

I have a NIS server with HP-UX 10.20 and some clients with HP-UX 11.00 don't work fine.

Could diferent HP-UX versions cause NIS doesn't work fine on clients with SO newer than master SO?

Thanks!

Carles
11 REPLIES 11
A. Clay Stephenson
Acclaimed Contributor

Re: Problems with NIS server and some clients

I have used 10.20 NIS servers with 11.x clients and it worked well. What does "doesn't work fine" actually mean? What does ypwhich return? Does ypcat passwd work?
If it ain't broke, I can fix that.
generic_1
Respected Contributor

Re: Problems with NIS server and some clients

NIS is just a difficult animal in its own, but these two should be able to work together. Make sure your patching is up to date on the two.
Carles Viaplana
Valued Contributor

Re: Problems with NIS server and some clients

Hi all,

I executed ypwhich command and NIS server for HP-UX 11.00 is itself.

I tried to change NIS configuration on SAM but I can't. Do you know how I can change NIS server on a client without using SAM?

Thanks!

Carles

PS: Sorry if I can't give you too much data, but I've just started to take care on these systems and they're not quite well.
Alan Meyer_4
Respected Contributor

Re: Problems with NIS server and some clients

ypset nodename

where nodename is the desired NIS server
" I may not be certified, but I am certifiable... "
Juan M Leon
Trusted Contributor

Re: Problems with NIS server and some clients

Check the file /etc/rc.config.d/namesvrs you will find all the settings for your nis.
A. Clay Stephenson
Acclaimed Contributor

Re: Problems with NIS server and some clients

Probably the easist thing to do is edit /etc/rc.config.d/namesvrs and make sure on the 11.0 client that these values are set:

NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT=1
NIS_DOMAIN=yourdomainname
MAX_NISCHECKS=2

This does assume that your NIS server and this client are in the same subnet.

After making these changes, reboot.
If it ain't broke, I can fix that.
Alan Meyer_4
Respected Contributor

Re: Problems with NIS server and some clients

Clay, would you have to reboot??? or could you just stop and start /sbin/init.d/nis.client?
" I may not be certified, but I am certifiable... "
Kevin Wright
Honored Contributor

Re: Problems with NIS server and some clients

what are you trying to change? Is the client bound to the server?

add the master and slaves ip to /etc/hosts, run domainname , then run ypinit -c.

Ypwhich should show you are bound to your master.
D Block 2
Respected Contributor

Re: Problems with NIS server and some clients

Charles,
can you detail describe what exactly is the issue with the clients? Are the client's IP addresses, hostnames, etc properly registered. Does the /usr file system get mounted ?

Golf is a Good Walk Spoiled, Mark Twain.
Carles Viaplana
Valued Contributor

Re: Problems with NIS server and some clients

Hi all,

Thanks for your messages. As soon as I can I'll update NIS server un 11.00 system.

Regards,

Carles
Carles Viaplana
Valued Contributor

Re: Problems with NIS server and some clients

NIS services restarted and all works fine now