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

Anyone have any ideas?

What does RPC failure on yp operation mean?

what other areas can I check?

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

The web page here says:

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?

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

It s quite a while since I have worked on a NIS system but:

  1. Does a:
$ ypcat hosts

work on the NIS master and NIS slave servers?

  1. 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)?

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 :stuck_out_tongue:

Any more thoughts Tony? I'll have some more time this weekend so I will post all the config information I can possible

This is my master server

# hostname
master

#domainname

# cat /etc/hosts

#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.2.55 master loghost
192.168.2.60 client

# ping client
client is alive
# ping 192.168.2.60
192.168.2.60 is alive

# svcs -a | grep nis
disabled 21:45:18 svc:/network/rpc/nisplus:default
disabled 21:45:19 svc:/system/patch-finish:delete
online 21:45:53 svc:/network/nis/update:default
online 21:45:56 svc:/network/nis/server:default
online 21:45:56 svc:/network/nis/xfr:default
online 21:45:56 svc:/network/nis/passwd:default
online 21:46:00 svc:/network/nis/client:default

# rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100028 1 tcp 32771 ypupdated
100028 1 udp 32772 ypupdated
100069 1 udp 32773
100069 1 tcp 32774
100004 2 udp 1023 ypserv
100004 1 udp 1023 ypserv
100004 1 tcp 1017 ypserv
100004 2 tcp 32775 ypserv
1073741824 2 udp 32774
100009 1 udp 1022 yppasswdd
100007 3 udp 32781 ypbind
100007 2 udp 32781 ypbind
100007 1 udp 32781 ypbind
100007 3 tcp 32776 ypbind
100007 2 tcp 32776 ypbind
100007 1 tcp 32776 ypbind

# cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)nsswitch.files 1.14 06/05/03 SMI"

#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files

auth_attr: files
prof_attr: files
project: files

tnrhtp: files
tnrhdb: files

This is my client setup

# cat /etc/nsswitch.conf
#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# NIS service requires that svc:/network/nis/client:default be enabled
# and online.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files nis
group: files nis

# consult /etc "files" only if nis is down.
hosts: nis [NOTFOUND=return] files

# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: nis [NOTFOUND=return] files

networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
ethers: nis [NOTFOUND=return] files
netmasks: nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files

netgroup: nis

automount: files nis
aliases: files nis

# for efficient getservbyname() avoid nis
services: files nis
printers: user files nis

auth_attr: files nis
prof_attr: files nis
project: files nis

# cat /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.2.60 client loghost
192.168.2.55 master

# hostname
client
# ping 192.168.2.55
192.168.2.55 is alive
# ping master
master is alive

######################

I did notice one problem that someone could help me out with

# pwd
/var/yp/binding/domain.com
# ls
ypservers
#

# cat ypservers
master

now when I run ypstart with an entry in the ypservers file

I get this error when I try ypwhich on the client

# ypwhich
Domain domain.com not bound on client.

BUT, if I move the ypservers file and run ypstart (ypbind will be started with the -broadcast option) and my ypwhich will work on the client

# ls
ypservers
# mv ypservers ypservers.bak
# pwd
/var/yp/binding/domain.com

# ypstart
starting NIS (YP server) services: ypbind done.
# ypwhich
master

# svcs -a | grep nis
disabled 22:00:11 svc:/network/rpc/nisplus:default
disabled 22:00:11 svc:/network/nis/server:default
disabled 22:00:12 svc:/system/patch-finish:delete
disabled 22:00:15 svc:/network/nis/passwd:default
disabled 22:00:15 svc:/network/nis/update:default
disabled 22:00:15 svc:/network/nis/xfr:default
online 22:11:04 svc:/network/nis/client:default

# rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100007 3 udp 32875 ypbind
100007 2 udp 32875 ypbind
100007 1 udp 32875 ypbind
100007 3 tcp 32843 ypbind
100007 2 tcp 32843 ypbind
100007 1 tcp 32843 ypbind

Anyone have an idea? I can get more information if anyone needs it to help diagnose my problem... Thanks for the replies so far! I feel maybe I can get this figured out with your help!

I couldn't get much out of this, but I thought I'd post the truss ypcat hosts command for anyone that could understand this

# truss ypcat hosts
execve("/usr/bin/ypcat", 0x08047E44, 0x08047E50) argc = 2
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFF0000
resolvepath("/usr/bin/ypcat", "/usr/bin/ypcat", 1023) = 14
sysconfig(_CONFIG_PAGESIZE) = 4096
xstat(2, "/usr/bin/ypcat", 0x08047C28) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047458) = 0
resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16
open("/lib/libnsl.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEFB0000
mmap(0x00010000, 647168, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEF10000
mmap(0xFEF10000, 525049, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEF10000
mmap(0xFEFA1000, 19869, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 528384) = 0xFEFA1000
mmap(0xFEFA6000, 30032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEFA6000
munmap(0xFEF91000, 65536) = 0
memcntl(0xFEF10000, 57812, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/lib/libc.so.1", 0x08047458) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0xFEFB0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000
mmap(0x00010000, 1204224, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEDE0000
mmap(0xFEDE0000, 1095677, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEDE0000
mmap(0xFEEFC000, 30375, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1097728) = 0xFEEFC000
mmap(0xFEF04000, 4432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEF04000
munmap(0xFEEEC000, 65536) = 0
memcntl(0xFEDE0000, 123776, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEEF0000
munmap(0xFEFB0000, 32768) = 0
getcontext(0x080479E0)
getrlimit(RLIMIT_STACK, 0x080479D8) = 0
getpid() = 1572 [1571]
lwp_private(0, 1, 0xFEEF2A00) = 0x000001C3
setustack(0xFEEF2A60)
sigfillset(0xFEF03E90) = 0
sysi86(SI86FPSTART, 0xFEF04800, 0x0000133F, 0x00001F80) = 0x00000001
sysinfo(SI_SRPC_DOMAIN, "atkinson.com", 256) = 13
open("/var/yp/nicknames", O_RDONLY) = 3
fstat64(3, 0x08047C40) = 0
brk(0x08063060) = 0
brk(0x08067060) = 0
fstat64(3, 0x08047B80) = 0
ioctl(3, TCGETA, 0x08047C14) Err#25 ENOTTY
read(3, " p a s s w d p a s s w".., 8192) = 226
sysconfig(_CONFIG_PAGESIZE) = 4096
llseek(3, 0xFFFFFFFFFFFFFF89, SEEK_CUR) = 107
close(3) = 0
getpid() = 1572 [1571]
open("/var/yp/binding/atkinson.com/cache_binding", O_RDONLY|O_LARGEFILE) = 3
fcntl(3, F_DUPFD, 0x00000100) Err#22 EINVAL
fcntl(3, F_GETLK, 0x080476A8) = 0
read(3, "\0\0\001\0\0\001\0\0\001".., 1024) = 132
close(3) = 0
open("/dev/udp", O_RDWR) = 3
ioctl(3, I_FIND, "timod") = 0
ioctl(3, I_PUSH, "timod") = 0
schedctl() = 0xFEFF7000
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(3, I_STR, 0x08047670) = 0
fxstat(2, 3, 0x08047610) = 0
brk(0x08067060) = 0
brk(0x08069060) = 0
ioctl(3, I_STR, 0x08047670) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
ioctl(3, I_FLUSH, FLUSHRW) = 0
sigaction(SIGSYS, 0x08047670, 0x080476F0) = 0
is_system_labeled() = 0
sigaction(SIGSYS, 0x08047670, 0x080476F0) = 0
fxstat(2, 3, 0x08047660) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(3, I_STR, 0x08047700) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
brk(0x08069060) = 0
brk(0x0806F060) = 0
fxstat(2, 3, 0x08047600) = 0
ioctl(3, I_STR, 0x08047690) = 0
fxstat(2, 3, 0x08047500) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(3, I_STR, 0x080475A0) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
brk(0x0806F060) = 0
brk(0x08073060) = 0
getpid() = 1572 [1571]
fxstat(2, 3, 0x080475B0) = 0
ioctl(3, I_STR, 0x080476C0) = 0
brk(0x08073060) = 0
brk(0x08075060) = 0
fxstat(2, 3, 0x080477A0) = 0
fcntl(3, F_SETFD, 0x00000001) = 0
open("/dev/udp", O_RDWR) = 4
ioctl(4, I_FIND, "timod") = 0
ioctl(4, I_PUSH, "timod") = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_STR, 0x08047700) = 0
fxstat(2, 4, 0x080476A0) = 0
brk(0x08075060) = 0
brk(0x08077060) = 0
brk(0x08077060) = 0
brk(0x08079060) = 0
ioctl(4, I_STR, 0x08047700) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_FLUSH, FLUSHRW) = 0
getuid() = 0 [0]
fxstat(2, 4, 0x08047620) = 0
fxstat(2, 4, 0x08047600) = 0
ioctl(4, I_STR, 0x08047690) = 0
fxstat(2, 4, 0x080475B0) = 0
ioctl(4, I_STR, 0x080476C0) = 0
fxstat(2, 4, 0x080475D0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_STR, 0x08047670) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 4, 0x080475C0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_STR, 0x08047660) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 4, 0x080475D0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_STR, 0x08047670) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 4, 0x080476E0) = 0
fxstat(2, 4, 0x080476C0) = 0
ioctl(4, I_STR, 0x08047760) = 0
fxstat(2, 4, 0x08047620) = 0
ioctl(4, I_STR, 0x080476B0) = 0
fxstat(2, 4, 0x08047520) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(4, I_STR, 0x080475C0) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
brk(0x08079060) = 0
brk(0x0807D060) = 0
getpid() = 1572 [1571]
fxstat(2, 4, 0x080475D0) = 0
ioctl(4, I_STR, 0x080476E0) = 0
brk(0x0807D060) = 0
brk(0x0807F060) = 0
fxstat(2, 4, 0x080477C0) = 0
getuid() = 0 [0]
getpid() = 1572 [1571]
open("/proc/1572/psinfo", O_RDONLY) = 5
read(5, "\0\0\00201\0\0\0 $06\0\0".., 336) = 336
close(5) = 0
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEFB0000
getuid() = 0 [0]
getuid() = 0 [0]
open64("/var/run/name_service_door", O_RDONLY) = 5
fcntl(5, F_SETFD, 0x00000001) = 0
door_info(5, 0xFEEFD45C) = 0
door_call(5, 0x08047618) = 0
brk(0x0807F060) = 0
brk(0x08081060) = 0
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEDC0000
getuid() = 0 [0]
getuid() = 0 [0]
door_info(5, 0x080475C0) = 0
door_call(5, 0x08047618) = 0
brk(0x08081060) = 0
brk(0x08083060) = 0
open("/etc/netconfig", O_RDONLY|O_LARGEFILE) = 6
fcntl(6, F_DUPFD, 0x00000100) Err#22 EINVAL
read(6, " # p r a g m a i d e n".., 1024) = 1024
read(6, " t s t p i _ c".., 1024) = 215
read(6, 0x0807E0D8, 1024) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, " # p r a g m a i d e n".., 1024) = 1024
read(6, " t s t p i _ c".., 1024) = 215
read(6, 0x0807E0D8, 1024) = 0
close(6) = 0
open("/dev/udp", O_RDONLY) = 6
ioctl(6, SIOCGLIFNUM, 0x0804782C) = 0
close(6) = 0
open("/dev/tcp", O_RDWR) = 6
ioctl(6, I_FIND, "timod") = 0
ioctl(6, I_PUSH, "timod") = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(6, I_STR, 0x08047710) = 0
fxstat(2, 6, 0x080476B0) = 0
ioctl(6, I_STR, 0x08047710) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
ioctl(6, I_FLUSH, FLUSHRW) = 0
getuid() = 0 [0]
fxstat(2, 6, 0x08047630) = 0
fxstat(2, 6, 0x08047610) = 0
ioctl(6, I_STR, 0x080476A0) = 0
fxstat(2, 6, 0x080475C0) = 0
ioctl(6, I_STR, 0x080476D0) = 0
fxstat(2, 6, 0x080475E0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(6, I_STR, 0x08047680) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 6, 0x080475D0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(6, I_STR, 0x08047670) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 6, 0x080475E0) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(6, I_STR, 0x08047680) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 6, 0x08047700) = 0
ioctl(6, I_STR, 0x08047810) = 0
open("/dev/udp", O_RDONLY) = 7
ioctl(7, SIOCGLIFNUM, 0x08047740) = 0
close(7) = 0
getuid() = 0 [0]
getuid() = 0 [0]
door_info(5, 0x08047430) = 0
door_call(5, 0x08047488) = 0
open("/etc/default/nss", O_RDONLY|O_LARGEFILE) = 7
fcntl(7, F_DUPFD, 0x00000100) Err#22 EINVAL
read(7, " # i d e n t\t " @ ( #".., 1024) = 1024
read(7, " y t h o s e\n # f u n".., 1024) = 211
read(7, 0x080814A0, 1024) = 0
close(7) = 0
brk(0x08083060) = 0
brk(0x08085060) = 0
open("/dev/udp", O_RDWR) = 7
ioctl(7, I_FIND, "timod") = 0
ioctl(7, I_PUSH, "timod") = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(7, I_STR, 0x080475A0) = 0
fxstat(2, 7, 0x08047540) = 0
ioctl(7, I_STR, 0x080475A0) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
ioctl(7, I_FLUSH, FLUSHRW) = 0
fxstat(2, 7, 0x08047590) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(7, I_STR, 0x08047630) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 7, 0x08047530) = 0
ioctl(7, I_STR, 0x080475C0) = 0
fxstat(2, 7, 0x08047430) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
ioctl(7, I_STR, 0x080474D0) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
brk(0x08085060) = 0
brk(0x080A5060) = 0
getpid() = 1572 [1571]
fxstat(2, 7, 0x080474E0) = 0
ioctl(7, I_STR, 0x080475F0) = 0
brk(0x080A5060) = 0
brk(0x080A7060) = 0
time() = 1238215043
fxstat(2, 7, 0x08047570) = 0
putmsg(7, 0x0804764C, 0x080476F4, 0) = 0
pollsys(0x080832FC, 1, 0x08047678, 0x00000000) = 1
fxstat(2, 7, 0x08047560) = 0
getmsg(7, 0x0804763C, 0x0807E1B8, 0x0804765C) = 0
fxstat(2, 7, 0x08047660) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
close(7) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fxstat(2, 6, 0x08047740) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
close(6) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
getpid() = 1572 [1571]
open("/proc/1572/psinfo", O_RDONLY) = 6
read(6, "\0\0\00201\0\0\0 $06\0\0".., 336) = 336
close(6) = 0
fxstat(2, -1, 0x08046C68) Err#9 EBADF
open("/dev/conslog", O_WRONLY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fxstat(2, 6, 0x08046C68) = 0
fxstat(2, 6, 0x08046E88) = 0
time() = 1238215043
open("/usr/share/lib/zoneinfo/Canada/Eastern", O_RDONLY) = 7
fstat64(7, 0x08046B90) = 0
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEDA0000
read(7, " T Z i f\0\0\0\0\0\0\0\0".., 1252) = 1252
close(7) = 0
getpid() = 1572 [1571]
putmsg(6, 0x08047848, 0x08047854, 0) = 0
open("/var/run/syslog_door", O_RDONLY) = 7
door_info(7, 0x08046CA0) = 0
getpid() = 1572 [1571]
door_call(7, 0x08046CD8) = 0
close(7) = 0
fxstat(2, 4, 0x08047820) = 0
fxstat(2, 4, 0x08047780) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
close(4) = 0
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
fstat64(2, 0x080470D0) = 0
RPC failure on yp operationwrite(2, " R P C f a i l u r e ".., 27) = 27

write(2, "\n", 1) = 1
_exit(1)

Can any NIS client ypcat hosts, passwd or group? If not then master is suspect.

If only the one NIS client cannot ypcat passwd or group then I suggest going through the setting up of the NIS client from scratch.

Either way this will help: 5.Setting Up and Configuring NIS Service (System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)) - Sun Microsystems

I'm only running 1 master and 1 client

and I had actually used that very guide from docs.sun :stuck_out_tongue:

did you see anything different from my config?

I will try and setup my master again... maybe that is the issue?..

UPDATE:

After working with a friend, we were able to find the problem!!

Now supposedly this is supposed to be setup when I setup using ypinit... but in my case (this happened 3 times! did not default for me)

there is a value from the network/rpc/bind SMF

if you run

svcprop network/rpc/bind | grep local on the NIS master

you will get an output like so:

# svcprop network/rpc/bind | grep local
config/local_only boolean true

if this is set to true, remote connections cannot query rpcbind

# svccfg -s svc:/network/rpc/bind

svc:/network/rpc/bind> listprop config/local_only
config/local_only boolean true <-- we want to change this to false

svc:/network/rpc/bind> setprop config/local_only=false
svc:/network/rpc/bind> listprop config/local_only
config/local_only boolean false <-- now it's setup as false

svc:/network/rpc/bind> end
# svcadm refresh /network/rpc/bind

reset the NIS client and voila! RPC failure on yp operation fixed!!!

THANK YOU ALL FOR THE HELP (Tony, thanks again!)