Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to tell what is running NIS on network.

Posted on 2011-03-21
4
Medium Priority
?
359 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

783 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