Solved

How to tell what is running NIS on network.

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
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.

734 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