HP Visualize c180xp IRIX to HP-UX Migration Guide - Page 88
etc/hosts, SLAVE1# /USR/ETC/NSD -A NIS_SECURITY=LOCAL, ypset, ypwhich, ypinit
View all HP Visualize c180xp manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 88 highlights
NIS 1. If the slave is not on the same network as cats, verify that the master server has an entry in /etc/hosts on the slave server: slave1# grep circles /etc/hosts 192.0.2.4 cats.bigdogs.com cats 2. Whether or not the slave is on the same network as cats, you should halt any existing nsd, and start the binding process with the specified attribute of nsd: SLAVE1# /USR/ETC/NSD -A NIS_SECURITY=LOCAL 3. Give the ypset command to point nsd at the server cats. Then verify that the server is bound by giving the ypwhich command. slave1# ypset cats slave1# ypwhich cats Building the Duplicate Maps By transferring a copy of the original maps from the NIS master server to the slave, ypinit builds the duplicate database maps. Follow these steps: 1. Determine which system is the master server with the ypwhich command. 2. Start building NIS slave server maps with the ypinit command. The -s flag specifies that this system is to be an NIS slave server, and cats is the master server: slave1# cd /var/yp slave1# ./ypinit -s circles Each line of the ypinit output contains the name of a map and the name of the master server where the map was created: Transferring map networks.byname from server cats.bigdogs. Transferring map services.byname from server cats.bigdogs. Transferring map passwd.byname from server cats.bigdogs. Transferring map hosts.byaddr from server cats.bigdogs. Transferring map ktools from server cats.bigdogs. Transferring map ypservers from server cats.bigdogs. Transferring map hosts.byname from server cats.bigdogs. Transferring map networks.byaddr from server cats.bigdogs. Transferring map protocols.byname from server cats.bigdogs. Transferring map group.byname from server cats.bigdogs. Transferring map netgroup from server cats.bigdogs. Transferring map mail.aliases from server cats.bigdogs. Transferring map ethers.byname from server cats.bigdogs. Transferring map protocols.bynumber from server cats.bigdogs. Transferring map netgroup.byhost from server cats.bigdogs. Transferring map group.bygid from server cats.bigdogs. Transferring map passwd.byuid from server cats.bigdogs. Transferring map ethers.byaddr from server cats.bigdogs. Transferring map netgroup.byuser from server cats.bigdogs. Starting NIS on the Slave Server The NIS service is available to clients as soon as you start it on this slave server. 83