NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 8354
Logging With nettl and netfmt
1. Issue the following command to make sure nettl is running:
/usr/bin/ps -ef | grep nettl
If nettl is not running, issue the following command to start it:
/usr/sbin/nettl -start
2. Issue the following command to start logging:
/usr/sbin/nettl -l i w e d -e all
The logging classes are specified following the -l option. They are i
(informational), w (warning), e (error), and d (disaster). Disaster
logging is always on. You cannot turn it off. Information logging (i)
fills up your log file faster than the other classes, so you might want
to leave it off.
3. Recreate the event you want to log.
4. Issue the following command to turn logging off:
/usr/sbin/nettl -l d -e all
This command changes the logging class back to disaster only for all
subsystems.
5. Issue the following command to format the binary log file:
/usr/sbin/netfmt -lN -f /var/adm/nettl.LOG00 >
formatted_file
where formatted_file is the name of the file where you want the
formatted output from netfmt. The default log file,
/var/adm/nettl.LOGnn, is specified in the nettl configuration file,
/etc/nettlgen.conf. If the file /var/adm/nettl.LOG00 does not
exist on your system, the default log file may have been changed in
/etc/nettlgen.conf.
NIS+ logging is not supported by nettl.
For more information, type man 1M nettl or man 1M netfmt.