HP-UX SNAplus2 R7 Administration Guide
Basic Configuration Tasks
Configuring Logging
/var/opt/sna/sna.err
/var/opt/sna/bak.err (backup)
Audit log file
/var/opt/sna/sna.aud
/var/opt/sna/bak.aud (backup)
Usage log file
/var/opt/sna/sna.usage
/var/opt/sna/bak.usage (backup)
You can view the log files using a text editor or other HP-UX system utilities:
vi
View the file in a text editor. This allows you to move through the file forwards or backwards, and to search
for particular entries.
pg
View a file one page at a time. This utility is simple and easy to use but useful only if the log file is small.
tail
View the tail (end) of a file. The end of the file is where the most recent log messages are. Use this utility
with the -f option to monitor the log file while the system is running.
If you selected succinct rather than verbose logging, you can use the snaphelp command to determine the cause
and action information for a particular message number.
For most purposes, the default settings for logging are sufficient, but you can make the following types of changes:
• Indicate what categories of messages are to be logged.
Problem messages are always logged and cannot be disabled. Logging is normally disabled for the other two
message categories, but you can enable it if necessary.
• Specify the level of detail in logging messages.
• Specify central logging for the domain or local logging for each node
• Change log file names and sizes.
To configure logging, use one of the following methods:
Motif administration program
Select
Logging from the
Diagnostics menu on the Node window or the Domain window.
Command-line administration program
Issue one of the following commands:
• set_central_logging
• set_global_log_type
• set_log_type
• set_log_file
The Logging dialog in the Motif administration program affects log settings throughout the domain. Using the
command line, you can override the domain settings by configuring local log settings on a particular machine.
In addition to providing control over logging, the Motif administration program provides node-level control over
tracing. The command-line interface provides greater control over both logging and tracing functions. For more
information about logging and tracing, refer to HP-UX SNAplus2 Diagnostics Guide.
84