Network Information Service (NIS) B.11.31.02 Administrator's Guide
auto.tools:
@if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_tools.time DOM=$(DOM) DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_tools.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
4. Enter the following commands to generate the map:
cd /var/yp
/usr/ccs/bin/make auto.tools
Removing an AutoFS Map from the NIS Domain
In case the user wants to shift the tools repository from the NIS Master server to a different server,
the auto.tools AutoFS map must be removed from the Master server and added to the other
server.
To remove an AutoFS map from the NIS domain, for example auto.tools, complete the
following steps:
1. Log in to the NIS master server as superuser.
2. Modify the /usr/sbin/ypinit script using a text editor, to remove the auto.tools map
name from the MASTER_MAPS list.
3. Modify the /var/yp/Makefile, as follows:
• Remove the auto.tools map from the list of maps that begin with all:.
• Remove the auto.tools section. For example:
$ (YPDBDIR)/$(DOM)/auto_tools.time: $(DIR)/auto_tools\
@(sed -e ”s/^[ | ]*//g” -e ”/^#/d” -e s/#.*$$// \
$(DIR)/auto_tools $(CHKPIPE)) |\
$(MAKEDBM) - $(YPDBDIR) /$(DOM)/auto.tools;
@touch $(YPDBDIR)/$(DOM)/auto_tools.time;
@echo ”updated auto.tools”;
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.tools; fi
@if [ ! $(NOPUSH) ]; then echo ”pushed auto.tools”; fi
• Remove the section that begins auto.tools. For example:
auto.tools:
@if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_tools.time DOM=$(DOM) DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_tools.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
4. On the master and on each of the slave servers, remove the map files, mapname.dir and
mapname.pag, from the directory where the maps are stored. This directory is called
/var/yp/domainname, where domainname is the name of the NIS domain.
For example, if you are removing the auto.tools map from the Finance domain, you
must enter the following commands on the master server and on each of the slave servers:
cd /var/yp/Finance
rm auto.tools.dir auto.tools.pag
For more information, see ypinit (1M), make (1), ypmake (1M), and ypfiles (4).
Adding a Slave Server to the NIS Domain
To add an NIS slave server to the NIS domain, complete the following steps:
1. Log in to the NIS master server as superuser.
2. Enter the following command:
cd /var/yp/domainname
Where:
domainname is the name of the domain to which the slave server is added. For example,
for a master server in the marketing domain, the domainname will be marketing.
30 Configuring and Administering an NIS Master Server