Solved

NIS

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
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.

920 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

15 Experts available now in Live!

Get 1:1 Help Now