SUMMARY - How to find out NIS Bound clients from the NIS Master / Slave

From: Garrett, Matt M SITI-ITISEEEE <>
Date: Wed Nov 09 2005 - 02:39:52 EST

Some interesting answers , but David Foster found a solution.
This does assume , all you machine's are in NIS Hosts , but I just changed the
script to bring in my master file of all my hosts.

I don't think there is an elegant way to do this, but I found the following:

ypwhich, embedded in a shell script, collects NIS client demographics to
perform a "census" of server usage:

#! /bin/sh
#       ypcensus - poll for ypservers
( for h in `ypcat hosts | awk '{print $2}'`
         ypwhich $h
   done ) | grep -v 'not running' | sort | uniq -c



I need to try and find all the Sun Nis Clients , that are bound to a NIS Slave
/ Master

I know from the client I can do ypwhich , but there does not seem to be a easy
way to find out from the slaves

I could look at snoop for say 15 minutes , to see which clients talk using NIS
But I was hoping for a better and quicker solution.

I will summaries.


Matthew Garrett
Linux / Unix IMG Support EPE
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
sunmanagers mailing list
Received on Wed Nov 9 02:41:08 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:52 EST