NIS Client issues


 
Thread Tools Search this Thread
Operating Systems Solaris NIS Client issues
# 1  
Old 03-26-2009
NIS Client issues

Hey All!

Today I am getting an error with my NIS client

From what I understand, my server is running properly...

on my client side..

online 2:01:12 svc:/network/nis/client:default

# ps -ef |grep ypbind
root 2745 1 0 02:01:12 ? 0:00 /usr/lib/netsvc/yp/ypbind -broadcast

ypwhich works

but ypcat hosts does not

# ypcat hosts
RPC failure on yp operation

my nsswitch.conf is the default nsswitch.nis template

my /etc/hosts has both master and client server

I have the correct domainname (I also put it in /etc/defaultdomain)

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.2.1 UG 1 0
192.168.2.0 192.168.2.60 U 1 3 e1000g0
224.0.0.0 192.168.2.60 U 1 0 e1000g0
127.0.0.1 127.0.0.1 UH 1 1602 lo0

that is my client IP, do I need to add my master server in here?

again, I am getting RPC failure on yp operation

I've spent my entire night trying to figure this out... if anyone has any ideas or needs more info I am glad to help
# 2  
Old 03-26-2009
Anyone have any ideas?

What does RPC failure on yp operation mean?

what other areas can I check?
# 3  
Old 03-26-2009
Any troubleshooting I can do with my NIS client/server config?

I can do all NIS commands on my server, and ypwhich on my client

I will be making another thread and will be posting everything from my configuration (from both my server and client) if I can't figure this out tonight
# 4  
Old 03-26-2009
The web page here says:
Quote:
Caution - If the /etc/nsswitch.conf file is set to files and not nis and the server is not included in the /etc/hosts file, then the ypcat command generates the following error message:

RPC failure: "RPC failure on yp operation"
RPC is "Remote Procedure Call" so the implication is that the client is having problems contacting the NIS master. So can your client resolve the NIS master's IP address to its name and vice versa?
# 5  
Old 03-27-2009
Hi Tony,

I saw that very same disclaimer on docs.sun.com as well but I have my nsswitch.conf set as nsswitch.nis

and yes, in my /etc/hosts I have the master IP/hostname

I can ping master <-- that is the short name and ping it's corresponding IP and vice versa

I can perform ypwhich on my client so I am able to query the master NIS

is there any specific config files you want to see that may be of help?

I've setup NIS 2 times now and get that RPC failure on yp operation on the NIS client...


Tonight I will double-check to see if the correct smf are enabled on my server (nis/client nis/server nis/update nis/passwd nis/xfr)

on my client I only have the nis/client enabled
# 6  
Old 03-27-2009
It s quite a while since I have worked on a NIS system but:

1. Does a:
Code:
$ ypcat hosts

work on the NIS master and NIS slave servers?

2. Is the client in the hosts file on the master (/etc/inet/hosts and hosts wherever you copied passwd, group and hosts to when setting up the NIS master)?
# 7  
Old 03-27-2009
ypcat hosts works on my master

but does not work on my client

and my client is in the my hosts files both local and in my NIS directory specified by the Makefile

I was talking to a co-worker and they were telling me that the ypwhich command does not mean that I have connectivity with my master server, yet my master server can do all NIS commands.

I want to continue my learning, but this problem is holding me back :P

Any more thoughts Tony? I'll have some more time this weekend so I will post all the config information I can possible
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

NIS Master and Client problem

I have a NIS Master server and NIS Clients. But when I started the service all the process and files that should be owne by root apper by the owner 0 This is an example 0 1709 1708 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1710 1709 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1708 1 0 10:06:10 ? 0:00... (2 Replies)
Discussion started by: GCSG
2 Replies

2. UNIX for Dummies Questions & Answers

Help with NIS client

Hi All, I have a new server on the network, I did configure the NIS. ypwhich is working and ypcat all are working. But when I log in as me, home directory is not coming up. I looked at other servers we have at work to see what's under /etc/fstab. I don't see anything for home directory. ... (3 Replies)
Discussion started by: samnyc
3 Replies

3. Solaris

Problem with NIS client

Hi All, In my network infra, there is a NIS master server and many more NIS slave servers. Now, I want every client to set with master server and one possible slave server so that if master goes down, client could still get info from slave server. The servers will be listed on... (0 Replies)
Discussion started by: naw_deepak
0 Replies

4. Solaris

Solaris 10 NIS Client

Hi all, Recently i have implemented NIS functionality in solaris 10 and i have created server and client with user in server side by giving useradd -d /export/home/user1 -m -s /bin/sh user1 after that I went to /var/yp dir and give /usr/ccs/bin/make so that it will refelect to client... (2 Replies)
Discussion started by: esungoe
2 Replies

5. AIX

AIX NIS Client to Linux

Hi, I have a trouble with configure NIS Client on AIX, my NIS server is on a Linux machine. After configure, some old NIS account could login normally. However, after I create new account from NIS server, I could not login with the new account, but could only su to that account. And I could view... (20 Replies)
Discussion started by: aloneattack
20 Replies

6. Solaris

NIS - Client Not loggin in

Friends n Gurus I am creating an NIS farm(Solaris only) in my office. I have successfully configured the NIS master and slave servers and a few NIS clients. However i am not able to log into a few of my NIS clients. The commands "ypcat passwd" is displaying the NIS user. However when i try to... (5 Replies)
Discussion started by: Renjesh
5 Replies

7. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

Hi, all. I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client, 1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01 2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies

8. AIX

AIX NIS client

All, I have just started using AIX (Solaris admin here) and I need to setup my new AIX box as an NIS client. Where would I do this? Thanks for the help! -Kevin (2 Replies)
Discussion started by: kjbaumann
2 Replies

9. AIX

Use AIX as NIS client

Hi everyone. Has anyone here used AIX as a NIS client to a Linux server? If have configured this setup and cant get it to work. I have verifyed that the NIS server is working since other machines are able to connect to it and users to log in on other clients. On the AIX machine the users are... (0 Replies)
Discussion started by: sprellari
0 Replies

10. Solaris

Unregietred a nis+ client

Hi, How can I unregistered a nis+ client. I want it works without nis+. Bests regards (2 Replies)
Discussion started by: omainfroy
2 Replies
Login or Register to Ask a Question