NFS Services Administrator's Guide
Configuring and Using the Remote Execution Facility (REX)
Configuring REX
Chapter 7286
To Configure Logging for the rexd Daemon
1. Use a text editor to add the -l log_file option to the line in
/etc/inetd.conf that starts rexd, as in the following example:
rpc stream tcp nowait root /usr/sbin/rpc.rexd 100017 1 \
rpc.rexd -l /var/adm/rexd.log
2. Issue the following command to force inetd to reread its
configuration file:
/usr/sbin/inetd -c
When logging is turned on, rexd logs any diagnostic, warning, and error
messages to log_file. If log_file exists, rexd appends messages to the
file. If log_file does not exist, rexd creates it. Messages are not logged
if the -l option is not specified.
Information logged to the file includes date and time of the error, host
name, process ID and name of the function generating the error, and the
error message.
Different RPC services can share a single log file, because enough
information is included to uniquely identify each error.
Type man 1M rexd for explanations of the messages logged by the rexd
daemon.
Many of the errors logged by rexd are also returned to the user who
issued the on command. Type man 1 on for explanations of the messages
returned by the on command.