Operating System - HP-UX
1833873 Members
1801 Online
110063 Solutions
New Discussion

Re: NIS client configuration --server and slave

 
vas_3
Advisor

NIS client configuration --server and slave

HI ALL,

We hve some problem with NIS master serer.So we configured slave server also.
we hve hpux client machines.how to configure nis master and slave in the nis client machine.

My requirement is:
if NIS master goes down client should contact slave server automatically.how to configure this?.

Thanks in advance..
Regards
Sri
8 REPLIES 8
Bijeesh
Respected Contributor

Re: NIS client configuration --server and slave

hi
The follwing link will be helpful

javascript:openExternal('http://docs.hp.com/en/B1031-90043/ch04s03.html')
Ganesan R
Honored Contributor

Re: NIS client configuration --server and slave

Hi Vas,

Client side nothing to configure to achieve this. If you have NIS slave servers in the same domain clients will automatically bind to the slave servers when master server is not available.

You can use "ypset" command to manually bind NIS clients to particular NIS servers.
Best wishes,

Ganesh.
vas_3
Advisor

Re: NIS client configuration --server and slave

But in your site it's not happening.Still waiting for master and machine is hanging.I need to do any chages in the nis setting client side?.

Regards,
Sri.
Bijeesh
Respected Contributor

Re: NIS client configuration --server and slave

Taifur
Respected Contributor

Re: NIS client configuration --server and slave


Hi Vas,

Check the below link for NIS in details,

http://docs.hp.com/en/5991-1154/5991-1154.pdf

Rgds//
Taifur
Kranti Mahmud
Honored Contributor

Re: NIS client configuration --server and slave

Viktor Balogh
Honored Contributor

Re: NIS client configuration --server and slave

The initial contact from the NIS client to the master/slave is going with a broadcast. So, they must be in the same subnet. To 'spread' a single NIS domain over multiple subnets, you must a slave server in every subnet and manually give them the IP of the master server. (and don't forget the -ypset option!)

look for the following lines in the /etc/rc.config.d/namesvrs:

YPBIND_OPTIONS="-ypset"
YPSET_ADDR="ip-of-the-nis-master"

with these two options you can skip the broadcasting and connect directly to the given IP (be it master or slave)
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: NIS client configuration --server and slave

*you must HAVE a slave server in every subnet
****
Unix operates with beer.