• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

Does NIS master server know how many NIS slave server it has configured in it's domain?

Does NIS master server know how many NIS slave server it has configured in it's domain? So incase of newly built 'map' one can transfer from NIS master server to all the NIS slave server. or can we request new map from the Slave server? Thanks!
0
beer9
Asked:
beer9
  • 2
1 Solution
 
yuzhCommented:
Have a look at /var/yp/binding/`domainname`/ypservers  file, it contains both master and slave names. also have a look at:  /var/yp/`domainname`/ypservers
In your NIS client, use "ypwhich" command to find out which NIS server you are currently bound
to.  
man ypwhich
to learn more details.
Have a look at the following NIS FAQ to learn how:
http://www.sunhelp.org/faq/nis.html

 
0
 
beer9Author Commented:
I am not  /var/yp/`domainname`/ypservers  file in NIS master server, though I can see these files. Still I can't figure out how many NIS slave servers are configures in the domain via the NIS master server. Please let me know if I am missing something here. Thanks!
bash-3.00# ls -l  /var/yp/`domainname`/ypservers*
-rw-------   1 root     root           0 Dec 16 01:41 /var/yp/sun.com/ypservers.dir
-rw-------   1 root     root        1024 Dec 16 01:41 /var/yp/sun.com/ypservers.pag

Open in new window

0
 
beer9Author Commented:
Thank you :-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now