Technical data

This command produces output similar to the following; one line of
information for each server, printer, and queue listed in the master map:
WS_sharie_PP:paddr=wstent.gandalf.xyz.com,105004,1,sys,pp,wstent_sup,1:
ws_lg_queue:qaddr=wstent.gandalf.xyz.com,105004,1,sys,qu,wstent_spl,1:
WS_cross_PP:paddr=wstent.gandalf.xyz.com,105004,1,sys,pp,wstent_sup,1:
WS_cress_PP:paddr=wstent.gandalf.xyz.com,105004,1,sys,pp,wstent_sup,1:
wstent_sup:saddr=wstent.gandalf.xyz.com,105004,1,sys,sv,wstent_sup,1:
ws_lg04_pp:paddr=wstent.gandalf.xyz.com,105004,1,sys,pp,wstent_sup,1:
glypha_spl:saddr=glypha.gandalf.xyz.com,105004,1,sys,sl,glypha_spl,1:
glypha_obg:saddr=glypha.gandalf.xyz.com,105004,1,sys,sv,glypha_obg,1:
WSQ1:qaddr=wstent.gandalf.xyz.com,105004,1,sys,qu,wstent_spl,1:
BigLinePrinter:paddr=wstent.gandalf.xyz.com,105004,1,sys,lp,wstent_spl,1:\
:spooling-type=dpa:
wstent_spl:saddr=wstent.gandalf.xyz.com,105004,1,sys,sl,wstent_spl,1:
ws_test_lp:paddr=wstent.gandalf.xyz.com,105004,1,sys,lp,wstent_spl,1:\
:spooling-type=dpa:
WS_lps:paddr=wstent.gandalf.xyz.com,105004,1,sys,lp,wstent_spl,1: \
:spooling-type=dpa:
In general, whenever you create or delete an object (server, printer, queue),
you need to update the name space on hosts where print system clients
will be used. With an NIS-based name service, this happens automatically
because the clients read up-to-date maps from the site NIS servers.
In addition, you need to update the name space on the server machines that
communicate with other server hosts. For example, if a spooler on host A has
queues that feed printers on host B, then the name space on both hosts A
and B must contain entries for each other’s objects. If a print system server
host is not an NIS server in the domain, you will need to transfer a copy of
its
printers.conf file to the NIS server and push the printers.conf
map whenever you make a change to its printer configuration.
If an NIS map already contains an object, and you delete the object (using
the pddelete command) and then create the same object again (using the
pdcreate command), the object is eliminated from the local file name space.
This is because the name already exists in the NIS name space and servers
do not create new name space entries if they already exist. Therefore, you
need to use caution when you delete and recreate an object because you
could lose the name space entry the next time you gather and push.
To avoid this situation:
Gather and push the NIS map immediately after deleting the object, and
immediately after you recreate the object.
Merge your printers.conf file with a current snapshot of the NIS
name space before pushing the NIS map:
# cd /var/yp/src
# ypcat printers.conf.byname > printers.conf.NIS
3–4 Managing the Name Space