Pages

Monday, January 10, 2011

How to work with NIS daemon not running

From NIS client, you can list the NIS servers with ypwhich command. Sometimes ypwhich command is not working. Below is tips to work with this issue.

  1. From NIS client, kill ypwhich process.
    # pkill ypwhich
  2. Login as root user on NIS server and check if ypbind and ypserv daemon is running.
    root@solaris-sunray # pgrep -fl yp
    438 /usr/lib/netsvc/yp/rpc.yppasswdd -D /var/yp -m
    132 /usr/lib/crypto/kcfd
    443 /usr/lib/netsvc/yp/ypserv -d
    433 /usr/lib/netsvc/yp/rpc.ypupdated
    435 /usr/lib/netsvc/yp/ypxfrd
    474 /usr/lib/netsvc/yp/ypbind
  3. If ypbind or ypserv process is not running on step 2, you must stop and start NIS service.
    root@solaris-sunray # svcadm disable network/nis/server:default
   root@solaris-sunray # svcadm enable network/nis/server:default
  1. If ypbind or ypserv process is running on step 2, ypserv process has probably hung. You must kill ypserv process and restart NIS service.
    root@solaris-sunray # pkill ypserv
    root@solaris-sunray # svcadm disable network/nis/server:default
    root@solaris-sunray # svcadm enable network/nis/server:default

No comments:

Post a Comment