NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 5196
Logging for the Other NFS Services
You can configure logging for the following NFS services:
rpc.rexd
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
Logging is not available for the rpc.quotad daemon.
Each message logged by these daemons can be identified by the date,
time, host name, process ID, and name of the function that generated the
message. You can direct logging messages from all these NFS services to
the same file.
To Control the Size of Log Files
Log files grow without bound, using up disk space. You might want to
create a cron job to truncate your log files regularly. Following is an
example crontab entry that empties the log file at 1:00 AM every
Monday, Wednesday, and Friday:
0 1 * * 1,3,5 cat /dev/null > log_file
For more information, type man 1M cron or man 1 crontab at the
HP-UX prompt.
To Configure Logging for the Other NFS Services
1. Add the -l
logfile
option to the lines in /etc/inetd.conf for the
services you want to log. In the following example, logging is turned
on for rpc.rexd and rpc.rstatd:
rpc stream tcp nowait root /usr/sbin/rpc.rexd 100017 1 \
rpc.rexd -l /var/adm/rpc.log
rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd \
100001 1-3 rpc.rstatd -l /var/adm/rpc.log
2. Enter the following command to restart inetd:
/usr/sbin/inetd -c