NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 5 191
AutoFS Tracing
Two levels of AutoFS tracing are available:
Detailed (level 3) Includes traces of all AutoFS requests and replies,
mount attempts, timeouts, and unmount attempts. You
can start level 3 tracing while AutoFS is running.
Basic (level 1) Includes traces of all AutoFS requests and replies. You
must restart AutoFS to start level 1 tracing.
To Start and Stop AutoFS Detailed Tracing
1. Log in as root to the NFS client.
2. Enter the following commands (
PID
is the process ID returned by the
ps command):
ps -ef | grep automoutd
kill -SIGUSR2 PID
Level 3 tracing is appended to the file /var/adm/automount.log.
NOTE The command, kill -SIGUSR2 PID, works if tracing is not already on.
To stop level 3 tracing, enter the same commands listed above to send the
SIGUSR2 signal to automountd. The SIGUSR2 signal is a toggle that turns
tracing on or off depending on its current state.
If you have basic (level 1) tracing turned on when you send the SIGUSR2
signal to automountd, the SIGUSR2 signal turns tracing off.
To Start AutoFS Basic Tracing
1. Log in as root to the NFS client.
2. Add -T to the AUTOMOUNTD_OPTIONS variable in the
/etc/rc.config.d/nfsconf file, as in the following example:
AUTOMOUNTD_OPTIONS=”-T”
This change puts AutoFS basic tracing messages into the file
/var/adm/automount.log.
3. Enter the following command to get a list of all the automounted
directories on the client: