Solved

How to tell what is running NIS on network.

Posted on 2011-03-21
4
356 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
[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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

623 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