Command Reference Guide
Administration Commands
query_log_file
2.138 query_log_file
The query_log_file command enables you to determine the name of the file that SNAplus2 uses to record
audit, error, or usage log messages, the name of the backup log file, and the file size at which log information is
copied to the backup file.
2.138.1 Supplied Parameters
Parameter name Type Length Default
[query_log_file]
log_file_type constant ERROR
Supplied parameters are:
log_file_type
The type of log file to be queried. Possible values are:
AUDIT
Audit log file (audit messages only)
ERROR
Error log file (problem and exception messages)
USAGE
Usage log file (current and peak usage of SNAplus2 resources).
2.138.2 Returned Parameters
Parameter name Type Length
file_name character 80
backup_file_name character 80
file_size decimal
If the command executes successfully, SNAplus2 returns the following parameters:
file_name
Name of the log file.
If no path is included, the file is stored in the default directory for diagnostics files, /var/opt/sna.Ifa
path is included, this path is either a full path (starting with a
[/] character) or the path relative to the default
directory.
backup_file_name
Name of the backup log file. When the log file reaches the size specified by
file_size, SNAplus2 copies the
current contents of the log file to this file and then clears the log file. You can also request a backup at any
time using set_log_file.
If no path is included, the backup log file is stored in the default directory for diagnostics files, /var/opt/
sna. If a path is included, it is either a full path (starting with a
[/] character) or the path relative to the
default directory.
file_size
408