Network Information Service (NIS) B.11.31.04 Administrator's Guide
Create the /var/yp/ypxfr.log file to log messages:
# /usr/bin/touch /var/yp/ypxfr.log
Stop logging of ypxfr and to remove the ypxfr.log file:
# /usr/bin/rm /var/yp/ypxfr.log
The log output of the ypxfr command cannot be redirected.
For more information, see ypxfr(1M), cron(1M), and yppush(1M) manpages.
• Starting and Stopping the Logging of the ypserv daemon
By default, the ypserv daemon logs messages to the file /var/yp/ypserv.log,
if it exists.
Verify whether the /var/yp/ypserv.log file exists and start logging using the
ypserv daemon:
# /usr/bin/touch /var/yp/ypserv.log
To stop logging of the ypserv, daemon remove the ypserv.log file:
# /usr/bin/rm /var/yp/ypserv.log
To direct the ypserv logging to a different file, complete the following steps:
1. Stop ypserv:
# /sbin/init.d/nis.server stop
2. Add the -l logfile option to the YPSERV_OPTIONS variable in the /etc/
rc.config.d/namesvrs file:
YPSERV_OPTIONS=”-l /var/yp/nis_log”
If you specify a log file with the -l option, the ypserv daemon shares that
log file with the other NIS daemons. The ypserv, ypbind, and yppasswd
daemons can log information independent of each other, unlike the ypxfr
daemon.
3. Restart the NIS server:
# /sbin/init.d/nis.server start
For more information, see ypserv(1M).
• Configuring ypbind Logging
1. Stop the NIS client:
# /sbin/init.d/nis.client stop
2. Add the -l logfile option to the YPBIND_OPTIONS variable in the /etc/
rc.config.d/namesvrs file:
YPBIND_OPTIONS=”-l /var/yp/nis_log”
If you specify a log file with the -l option, ypbind shares that log file with
the other NIS daemons. If the same log file is configured by all NIS daemons,
then all NIS daemons share the same log file.
3. Restart the NIS client:
42 Configuring and Administering an NIS Master Server