NIS Client issues


 
Thread Tools Search this Thread
Operating Systems Solaris NIS Client issues
# 8  
Old 03-27-2009
This is my master server

# hostname
master

#domainname
domain.com

# 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

Last edited by Keepcase; 03-27-2009 at 11:15 PM..
# 9  
Old 03-27-2009
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!
# 10  
Old 03-28-2009
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)
# 11  
Old 03-28-2009
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
# 12  
Old 03-28-2009
I'm only running 1 master and 1 client

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

did you see anything different from my config?

I will try and setup my master again... maybe that is the issue?..
# 13  
Old 03-31-2009
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!)
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