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

From: Garrett, Matt M SITI-ITISEEEE <matt.garrett_at_shell.com>
Date: Wed Nov 09 2005 - 02:39:52 EST
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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
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