Solved

NIS

Posted on 2000-02-28
4
428 Views
Last Modified: 2010-04-21
how does NIS master server know who is it child (which means how does NIS master server know who is its client)? I know we can do it from client side, I am asking how do we know/find from NIS master server, like any command or file?
0
Comment
Question by:wsng022200
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2565768
I don't think a NIS server keeps any state information (except internally) about the clients. I suppose you could use lsof (ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/) to examine the open connections an see who the NIS server is talking to.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2574688
There's the brute force way of checking:

for h in `cat list_of_potential_clients`
do
  echo $h >> client_list
  remsh $h ypwhich >> client_list
done

I've used a (more refined) version of this in the past to see which clients are bound to a master & which to a slave server when I suspected the master wasn't doing it's fair share of the work. I'll dig the example out if you're interested.

0
 

Expert Comment

by:bchill
ID: 2583674
consider using /var/yp/securenets (supported in newer implementations
of NIS) to control access. It can be done by subnet or IP address. If
you do it by IP address, it will sort of 'force you' to keep a list.
0
 

Accepted Solution

by:
bchill earned 30 total points
ID: 2583675
The definitive answer to this is that ypserv doesn't make
that information available. Use one of the methods in
the comments to achieve the results you are looking for.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now