HP-UX SNAplus2 Diagnostics Guide
Using Logging and Tracing
Controlling Logging Using Command-Line Administration Program
Chapter 368
sna.log, specify the following commands:
snapadmin set_log_file, log_file_type = ERROR, file_name = sna.log
snapadmin set_log_file, log_file_type = AUDIT, file_name = sna.log
Audit and error log files are ASCII text files. Use a standard HP-UX text
editor such as vi to view them.
Enabling Central Logging and Local Logging
In a client-server system, SNAplus2 sends all log messages to files on the
master server by default (central logging). However, you can log
messages for each server to files on that server (local logging).
If a server cannot locate the domain configuration file when it starts up
(for example, because no master or backup server is active), it cannot
determine whether to log centrally or locally and which server is the
central logger. In this case, the server logs messages locally. When it
later establishes contact with the master server and determines that
central logging is in use, it sends any further messages to the central
logger and stops local logging.
You specify whether to log centrally or locally by using the
set_central_logging command. To check the name of the server that is
currently defined as the central logger (to which all log messages are
sent) or to check whether central logging is currently enabled, use the
query_central_logger and query_central_logging administration
commands.
For more information about these administration commands, refer to the
HP-UX SNAplus2 Administration Command Reference.
Determining Which Messages Are Logged
Problem messages are always logged and cannot be disabled, but you can
specify whether to log exception and audit messages. The initial default
is to log exception messages but not audit messages. You can specify
global settings for logging exception and audit messages on all servers by
using the snapadmin set_global_log_type command. If necessary, you
can override these settings for a particular server by using the
snapadmin set_log_type command.
To determine what logging options are in effect issue the following:
• Use the snapadmin query_global_log_type to check which