Operating System - HP-UX
1834931 Members
2740 Online
110071 Solutions
New Discussion

Configuring NIS to Automatically Push Updates

 
Andrew Kaplan
Super Advisor

Configuring NIS to Automatically Push Updates

Hi there --

I have an NIS domain with a Master and Slave NIS server. The operating system for both systems is HP-UX 11.11 v.1.

I want to configure the Master server to automatically push updates the slave server so that if a client logs into the domain via the slave server, the various maps on the slave will match those on the master. Currently, it looks like the slave is not fully synched up as an NIS slave server to the master.

How would I set this up? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Configuring NIS to Automatically Push Updates

Shalom,

What you ask for is the default configuration of the slave.

Check the /var/adm/syslog/syslog.log of the master and slave for clues.

I'd be interested to see the results of a ypmake command on the server. You may wish to do this while also running tail -f /var/adm/syslog/syslog.log on both the master and the slave.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Configuring NIS to Automatically Push Updates

What you are describing is exactly the behavior of the standard Makefile in /var/yp.
If the maps are not being pushed to the slaves, it's possible that the timestamps are out of sync. Another possibability is that the "on demand" (i.e when make is run) pushes were configured correctly but at that moment, the slave server was down. Make sure that you have cron entrys (ypxfr_1perhour, ypxfr_1perday) that will invoke ypxfr on a periodic basis to cover the cases where the "on demand" ypxfr's fail.
If it ain't broke, I can fix that.