Tuesday, May 13, 2014

sol 8 nis client tasks

 Edit /etc/hosts to include entries for the NIS master and all slaves.  
 # domainname yourdomain  
 # domainname > /etc/defaultdomain  
 # ypinit -c  
 Add the following hosts:  
 nis_master  
 nis_slave  
 nis_other_slave  
 nis_master-a   (other interface, if available)  
 nis_slave-a   (other interface, if available)  
 nis_other_slave-a   (other interface, if available)  
 If one of the NIS slave servers is closer on the network , add it first in the list, then the next closest (slave or master), etc.  
 Start NIS  
 # cp /etc/nsswitch.nis /etc/nsswitch.conf   (edit the original /etc/nsswitch.nis beforehand as described earlier)  
 # /usr/lib/netsvc/yp/ypstart   (normally called from /etc/init.d/rcp)  
 # ypwhich should return  
 nis_master  
 Also the following commands:  
 # ypcat hosts  
 # ypcat passwd  
 should return lots of relevant data.  
Post a Comment