Operating System - HP-UX
1824881 Members
3798 Online
109675 Solutions
New Discussion юеВ

Nis Doubt... how to find the master server?

 
SOLVED
Go to solution
Guna_2
Regular Advisor

Nis Doubt... how to find the master server?

Hi,

I am sitting in a hp box which is a nis client. I got the domainname of the nis by issuing a command domainname.

But i want to know which node is serving the ypserver daemon? I mean which is the master nis server? How can i find this from a nis client?

Thanks and Regards
---MGP--
6 REPLIES 6
Redhat
Trusted Contributor
Solution

Re: Nis Doubt... how to find the master server?

ypwhich -m passwd

see man pages for ypwhich
Guna_2
Regular Advisor

Re: Nis Doubt... how to find the master server?

Hi

Thanks. This what i want.

Thank you.
--MGP--
Steven Schweda
Honored Contributor

Re: Nis Doubt... how to find the master server?

It's safer to use plain "ypwhich -m", rather
than asking about a particular map, as there
could be different masters for different
maps. It may not happen much, but why take
the chance?
Guna_2
Regular Advisor

Re: Nis Doubt... how to find the master server?

Hi,

Thats nice Steven.


#ypwhich
nis3.xxx.com
#ypwhich -m passwd
nis1

From this i could understand that nis1 is the master server and nis3 could be a slave server.


And from a slave server can i get what all are slave servers are available for this domain?
A. Clay Stephenson
Acclaimed Contributor

Re: Nis Doubt... how to find the master server?

ypcat -k ypservers
will list all the nis serveers and you already know the master
If it ain't broke, I can fix that.
Guna_2
Regular Advisor

Re: Nis Doubt... how to find the master server?

Hi,

Thanks, My problem got solved

Regards
--MGP--