Syncing NIS Slaves

Sometimes when an NIS slave is out of action for quite sometime, it may go out of sync with the master. Following code will sync up the NIS slave with the master.

ypwhich -m|awk '{print $1}'|while read line
do
/usr/lib/netsvc/yp/ypxfr $line
done
This entry was posted in Tips/Code Snippets and tagged . Bookmark the permalink.

Leave a Reply