HP-UX SNAplus2 R7 Administration Guide

Basic Conguration Tasks
Conguring Logging
/var/opt/sna/sna.err
/var/opt/sna/bak.err (backup)
Audit log le
/var/opt/sna/sna.aud
/var/opt/sna/bak.aud (backup)
Usage log le
/var/opt/sna/sna.usage
/var/opt/sna/bak.usage (backup)
You can view the log les using a text editor or other HP-UX system utilities:
vi
View the le in a text editor. This allows you to move through the le forwards or backwards, and to search
for particular entries.
pg
View a le one page at a time. This utility is simple and easy to use but useful only if the log le is small.
tail
View the tail (end) of a le. The end of the le is where the most recent log messages are. Use this utility
with the -f option to monitor the log le 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 sufcient, 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 le names and sizes.
To congure 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 conguring 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