Network Information Service (NIS) B.11.31.02 Administrator's Guide
ypwhich: clntudp_create error RPC_PROG_NOT_REGISTERED
You can do the following:
• Check if the ypbind process is running:
ps -ef | grep ypbind
• If ypbind is not running, run the following command to start all the NIS client processes:
/sbin/init.d/nis.client start
NIS Returns Incorrect Information
If the message “NIS Returns Incorrect Information” is displayed, you can do one the following:
□ Run the following command on the NIS client to determine the master server that provides
the appropriate NIS map:
/usr/bin/ypwhich -m mapname
If the server does not respond, see “NIS “Server Not Responding” Message” (page 45).
□ Log in as root to the NIS master server, and run the following command to check the contents
of the appropriate NIS map:
/usr/bin/ypcat -k mapname
If the map contents are not correct, edit the ASCII file from which the map is generated.
Then, run the following commands to regenerate the map and replicate it to the slave servers:
cd /var/yp
/usr/ccs/bin/make mapname
□ Run the following command on the NIS client to check the contents of the map on the NIS
server to which the client is bound:
/usr/bin/ypcat -k mapname
If the contents are not correct, log in as root to the slave server that serves the NIS client,
and run the following command:
/usr/sbin/ypxfr mapname
This command transfers the map from the NIS master server to the slave server where you
executed the command.
□ If the NIS client is bound to a slave server, ensure that the slave server is listed in the NIS
master server’s ypservers database. Follow these steps:
1. Run the following command on the NIS client to determine the server to which the
client is bound to:
/usr/bin/ypwhich
2. Log in as root to the NIS master server and run the following command to change to
the directory where the domain databases reside:
cd /var/yp/domainname
3. On the NIS master server, run the following command to write the contents of the
ypservers database to a temporary file:
/usr/sbin/makedbm -u ypservers > tempfile
4. If the NIS slave server is not listed in tempfile, use a text editor to add it, and then
run the following command to rebuild the ypservers database:
/usr/sbin/makedbm tempfile ypservers
5. Log in to the NIS slave server and run the following command:
/usr/sbin/ypxfr ypservers
□ Make sure the slave servers have cron scripts that schedule regular updates of the map.
48 Troubleshooting NIS