HP-UX SNAplus2 Diagnostics Guide
Using Logging and Tracing
Controlling Logging Using Command-Line Administration Program
Chapter 3 67
Controlling Logging Using Command-Line
Administration Program
You can use the command-line administration program to perform the
following tasks.
• Change the names and locations of the log files and backup log files.
• Enable central or local logging.
• Enable or disable logging of audit and exception events on individual
servers.
• Change the maximum log file size.
• Enable verbose or succinct logging.
Changing the Names and Locations of Log Files
SNAplus2 usually puts logs in two different files:
• Problems (always logged) and exceptions (if logged) are normally
logged to the /var/opt/sna/sna.err file.
• Audits (if logged) are normally written to the /var/opt/sna/sna.aud
file.
You can change the names and locations of these files using the
command-line administration program in the following way:
Step 1. Use the snapadmin set_log_file command to change the names of log
files.
Step 2. Use the snapadmin query_log_file command to check the current
setting.
Refer to HP-UX SNAplus2 Administration Command Reference for more
information about issuing these commands.
You can specify that SNAplus2 log all messages to the same file by
issuing two snapadmin set_log_file commands, one with the
log_file_type
parameter set to ERROR and one with the parameter set
to AUDIT. In both commands, specify the same file name.
For example, to record error log and audit log messages in a file named