Solved

NIS

Posted on 2000-02-28
4
431 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FTP on FreeBSD server 2 141
dot directory in FreeBSD??? 4 88
How can i set a Environment Variable in my Unix script ? 3 77
awk sed 8 68
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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

829 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