Technical data

NIS requires a coordinated update of configuration changes. That is, you
must add an object name to the NIS file before you create the print system
object. However, unlike the Local File Name Service where you have to
update the local file in each of multiple hosts, you need to update data in
only one place with NIS.
To distribute the names and locations of printers, servers, and queues to
hosts that are set up as NIS clients, gather one or more printers.conf
files from those hosts where the print system server processes run and
merge them into a master map file in /var/yp/src/printers.conf.You
can use a text editor to merge the contents of those files. If the resulting file
contains duplicate entries, use the text editor to remove the duplicates.
To update the NIS map on the NIS server after you have created the master
printers.conf file:
1. Log in as root.
2. If you have not done so already, copy /usr/pd/scripts/Make-
file.printers to /var/yp/Makefile.printers.
# cp /usr/pd/scripts/Makefile.printers /var/yp/Makefile.printers
Edit the copy of the file to define your NIS domain with the DOM
variable.
3. Set the current directory to /var/yp/src.
# cd /var/yp/src
4. Copy all pertinent printers.conf files from various hosts to the
current directory, giving each a unique name.
# cp /etc/printers.conf ./
5. Use a text editor to merge the contents of these files into a new master
printers.conf file.
# mv printers.conf printers.conf.<date>
# cat printers.conf.host1 printers.conf.host2\
printers.conf > printers.conf
6. Change the current directory to /var/yp.
# cd ..
7. Run the Makefile.printers file with the printers.conf (or “all”)
target to remake and redistribute the printers map.
# make -f Makefile.printers
updated printers.conf
pushed printers.conf
8. Verify that the new printers.conf map is available.
# ypcat printers.conf.byname
Managing the Name Space 3–3