NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Master Server
Chapter 4166
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM)
auto.mapname; fi
@if [ ! $(NOPUSH) ]; then echo ”pushed
auto.mapname”; fi
5. In the /var/yp/Makefile file, copy the statement that begins
auto.master: to the space below it. Change auto.master to
auto.mapname, and change both occurrences of auto_master.time
to auto_mapname.time.
auto.master:
@if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_master.time DOM=$(DOM)
DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k
$(YPDBDIR)/$(DOM)/auto_master.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
auto.mapname:
@if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_mapname.time DOM=$(DOM)
DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k
$(YPDBDIR)/$(DOM)/auto_mapname.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
6. Issue the following commands to generate the map:
cd /var/yp
/usr/ccs/bin/make NOPUSH=1 auto.mapname
7. If you have slave servers configured in your domain, log into each
slave server and issue the following command to copy the new map to
the slave server:
/usr/sbin/ypxfr auto.mapname
For more information, see the man page for ypinit(1M), make(1),
ypmake(1M), or ypxfr(1M).