HP Visualize c3600 IRIX to HP-UX Migration Guide - Page 95
To Modify an NIS Map
View all HP Visualize c3600 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 95 highlights
NIS # cd /var/yp/ domainname 3. Issue the following command to create an editable ASCII text file from the ypservers map: # /usr/sbin/makedbm -u ypservers > tempfile 4. Use a text editor to add the name of the new server to the ASCII file tempfile. 5. Issue the following command to regenerate the ypservers map from the ASCII file: # /usr/sbin/makedbm tempfile ypservers 6. Login as root to the new slave server, and configure it as an NIS slave server. To Remove a Slave Server from Your NIS Domain Follow these steps to remove a slave server from your NIS domain: 1. Login as root to the NIS master server. 2. Issue the following commands to create an editable ASCII text file from the ypservers map: # cd /var/yp/ domainname # /usr/sbin/makedbm -u ypservers > tempfile 3. Use a text editor to remove the name of the slave server from the ASCII file tempfile. 4. Issue the following command to regenerate the ypservers map from the ASCII file: # /usr/sbin/makedbm tempfile ypservers 5. Login as root to the slave server. 6. Remove all the map files from the map directory, and remove the map directory. The directory is called /var/yp/ domainname, where domainname is the name of your NIS domain. For example, if you were removing a slave server from the Finance domain, you would issue the following commands: # cd /var/yp/Finance # rm * # cd .. # rmdir Finance 7. If the slave is not a slave server in any other NIS domain, use a text editor to set the NIS_SLAVE_SERVER variable to 0 in the /etc/rc.config.d/namesvrs file, as in the following example: NIS_SLAVE_SERVER=0 8. If the slave is not a server in any other NIS domain, issue the following command to turn off NIS server capability: # /sbin/init.d/nis.server stop To Modify an NIS Map Follow these steps to modify an NIS map: 90