Configure Solaris NIS
configure NIS Master Server :
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2. create domain name (i.e : #domainname aghiel.lab.com) and make it permanently (/etc/defaultdomain)
3. Make sure file list below are already in /etc, if not, create it using 'touch' command :
/etc/ethers, /etc/bootparams, /etc/locale, /etc/netmasks, /etc/netgroup, /etc/timezone
4. initialize master server :
#ypinit -m
5. Make sure yp daemon is running, if not start it using :
#/usr/lib/netsvc/yp/ypstart
6. Go to /var/yp and run /usr/ccs/bin/make onto it :
#cd /var/yp
#/usr/ccs/bin/make
7. If you want to stop NIS service on NIS master :
#/usr/lib/netsvc/yp/ypstop
8. test it using : #ypwhich -m or #ypcat -x
configure NIS client :
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2.create domainame (i.e :#domainname aghiel.lab.com) and store it in /etc/defaultdomain.
3.run ypinit -c
4.run /usr/lib/netsvc/yp/ypstart
5. test it using : #ypwhich -m
configure NIS Slave Server:
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2. create domainame (i.e :#domainname aghiel.lab.com) and store it in /etc/defaultdomain.
3. Make sure slave server already added on Master Server, if not, re-run ypinit -m on Master Server to register slave server.
4. run ypinit -c
5. Make sure yp daemon is running, if not start it using :
#/usr/lib/netsvc/yp/ypstart
6. Initialize slave server (i.e master server : aghiel01) :
#ypinit -s aghiel01
7. test it using : #ypwhich -m
Update NIS Map on Master Server:
#cd /var/yp
#/usr/ccs/bin/make
update NIS Map on slave server :
#/usr/lib/netsvc/yp/ypxfr hosts.byaddr
#/usr/lib/netsvc/yp/ypxfr hosts.byname
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2. create domain name (i.e : #domainname aghiel.lab.com) and make it permanently (/etc/defaultdomain)
3. Make sure file list below are already in /etc, if not, create it using 'touch' command :
/etc/ethers, /etc/bootparams, /etc/locale, /etc/netmasks, /etc/netgroup, /etc/timezone
4. initialize master server :
#ypinit -m
5. Make sure yp daemon is running, if not start it using :
#/usr/lib/netsvc/yp/ypstart
6. Go to /var/yp and run /usr/ccs/bin/make onto it :
#cd /var/yp
#/usr/ccs/bin/make
7. If you want to stop NIS service on NIS master :
#/usr/lib/netsvc/yp/ypstop
8. test it using : #ypwhich -m or #ypcat -x
configure NIS client :
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2.create domainame (i.e :#domainname aghiel.lab.com) and store it in /etc/defaultdomain.
3.run ypinit -c
4.run /usr/lib/netsvc/yp/ypstart
5. test it using : #ypwhich -m
configure NIS Slave Server:
1. copy /etc/nsswitch.nis to /etc/nsswitch.conf
2. create domainame (i.e :#domainname aghiel.lab.com) and store it in /etc/defaultdomain.
3. Make sure slave server already added on Master Server, if not, re-run ypinit -m on Master Server to register slave server.
4. run ypinit -c
5. Make sure yp daemon is running, if not start it using :
#/usr/lib/netsvc/yp/ypstart
6. Initialize slave server (i.e master server : aghiel01) :
#ypinit -s aghiel01
7. test it using : #ypwhich -m
Update NIS Map on Master Server:
#cd /var/yp
#/usr/ccs/bin/make
update NIS Map on slave server :
#/usr/lib/netsvc/yp/ypxfr hosts.byaddr
#/usr/lib/netsvc/yp/ypxfr hosts.byname
Comments