Solved

How to tell what is running NIS on network.

Posted on 2011-03-21
4
351 Views
Last Modified: 2012-05-11
I need to find out how many boxes on my network is running NIS no matter what form. Is there a command I can use to give me that information. I want to be able to sit at one machine and get my answer without logging into all of the machines. I have a little less than 600 machines to count for.

I am new to linux so please give answers like you are talking to a newbie.. thanks...
0
Comment
Question by:Bryant
  • 2
4 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35181627
You need to issue the following commands.  You may have to ssh to all machines; depending upon the information you need.
Consider the following commands.

ypcat
yppoll

yppoll [ -h host ] [ -d domain ] mapname
ypcat [ -kt ] [ -d domain ] [ -h hostname ] mapname
ypcat -x

You may have to check /etc/nsswitch.conf, especially the lines that contain nis

You can man on these command.  If you are on Solaris, you may be using nis plus which is very different.

To being with you may have to get to a few suspected hosts and do
grep nis /etc/nsswitch

This should give you an idea.

You also may have authconfig utility that tell a little more details

You will have to do so research and read the man pages by issuing this command
man <command name>
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35193109
NIS is a stateless protocol, thus there are no "connections" which you could query from the server side.

You could try to capture/monitor the NIS network traffic from and to your server using something like iptables or wireshark.

wmp

0
 

Accepted Solution

by:
Bryant earned 0 total points
ID: 35268264
Thanks for your help. I had someone write a script that logged in a out of every machine using a domain account that dumped the results into a file. I was trying to avoid logging into every machine that is why I didnt use farzanj answer...
0
 

Author Closing Comment

by:Bryant
ID: 35312676
i have no idea how they wrote the script but it was a  team of 3 designers.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

790 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