NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 8 351
To Start and Stop Logging of ypserv
By default, the ypserv daemon logs messages to the file
/var/yp/ypserv.log, if it exists. To start logging of ypserv, issue the
following command to make sure the /var/yp/ypserv.log file exists:
/usr/bin/touch /var/yp/ypserv.log
To stop logging of ypserv, remove the ypserv.log file:
/usr/bin/rm /var/yp/ypserv.log
If you want to direct ypserv logging to a different file, follow these steps:
1. Add the -l logfile option to the YPSERV_OPTIONS variable in
/etc/rc.config.d/namesvrs, as in the following example:
YPSERV_OPTIONS=”-l /var/yp/nis_log
2. Issue the following commands to restart ypserv (PID is the process
ID returned by the ps command):
ps -ef | grep ypserv
kill PID
/usr/lib/netsvc/yp/ypserv options
options is the list of options configured in the YPSERV_OPTIONS
variable in the /etc/rc.config.d/namesvrs file. You can also
source the /etc/rc.config.d/namesvrs file, and then enter the
ypserv command as follows:
/usr/lib/netsvc/yp/ypserv $YPSERV_OPTIONS
If you specify a log file with the -l option, ypserv can share the same log
file with the other NIS daemons.
For more information, type man 1M ypserv at the HP-UX prompt.
To Configure ypbind Logging
1. Add the -l logfile option to the YPBIND_OPTIONS variable in
/etc/rc.config.d/namesvrs, as in the following example:
YPBIND_OPTIONS=”-l /var/yp/nis_log
2. Issue the following commands to restart ypbind (PID is the process
ID returned by the ps command):
ps -ef | grep ypbind
kill PID
/usr/lib/netsvc/yp/ypbind options