System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

NIS Daemons Not Running

If the servers are up and running, try to find a client machine behaving normally, and run the ypwhich command. If ypwhich does not respond, kill it. Then log in as root on the NIS server and check if the NIS process is running by entering the following.


# ps -e | grep yp

Note –

Do not use the -f option with ps because this option attempts to translate user IDs to names, which causes more naming service lookups that might not succeed.


If neither the NIS server (ypserv) nor the NIS client (ypbind) daemons are running, restart them by typing one of the following.


# svcadm restart network/nis/server
or
# /usr/lib/netsvc/yp/ypstop
# /usr/lib/netsvc/yp/ypstart

If both the ypserv and ypbind processes are running on the NIS server, then run ypwhich. If ypwhich does not respond, ypserv has probably hung and should be restarted. While logged in as root on the server, restart the NIS service by typing one of the following.


# svcadm restart network/nis/server
or
# /usr/lib/netsvc/yp/ypstop
# /usr/lib/netsvc/yp/ypstart