Solved

NIS

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

730 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