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

Garrett, Matt M SITI-ITISEEEE matt.garrett at shell.com
Wed Nov 9 02:39:52 EST 2005


Folks

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}'`
   do
         ypwhich $h
   done ) | grep -v 'not running' | sort | uniq -c


http://unix.org.ua/orelly/networking_2ndEd/nfs/ch13_04.htm

-----------------------------------------------------------------------------
-------------------------------------------------

Folks

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
Protocol.
But I was hoping for a better and quicker solution.

I will summaries.

Matt



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
Email:
Internet: http://www.shell.com
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



More information about the summaries mailing list