Command Reference Guide

Administration Commands
set_log_le
State Check
No specic state errors, other than those listed in Appendix A, Common Return Codes from snapadmin Commands,
occur for this command.
Other Conditions
Appendix A, Common Return Codes from snapadmin Commands, lists combinations of primary and secondary
return codes that are common to all commands.
2.189 set_log_le
The set_log_file command manages a le that SNAplus2 uses to record log messages. It enables you to do
the following:
Specify a le used to record log messages (audit, error, or usage logs), and the backup le (to which log
information is copied).
Specify the maximum log le size (when the log le reaches this size, SNAplus2 copies log information to the
backup le and resets the log le).
Copy the current contents of the log le to the backup le, and optionally delete the current le.
You can record audit log and error log messages in separate les, or record both types of messages in the same le.
2.189.1 Supplied Parameters
Parameter name Type Length Default
[set_log_file]
log_file_type constant ERROR
action constant NO_FILE_ACTION
file_name character 80 (null string)
backup_file_name character 80 (null string)
file_size decimal 0
Supplied parameters are:
log_le_type
The type of log le to be used. Possible values are:
AUDIT
Audit log le (record audit messages only)
ERROR
Error log le (record problem and exception messages)
USAGE
Usage log le (record information on current and peak usage of SNAplus2 resources).
To record both audit and error messages in the same le, issue two set_log_file commands for the same
le name, specifying AUDIT for the log_le_type of one command and ERROR for the log_le_type of the
other.
action
588