Solved

NIS

Posted on 2000-02-28
4
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 21

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

Technology Partners: 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!

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.

707 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