Command Reference Guide

Administration Commands
set_log_le
The action to be taken on the log le. Specify one of the following values:
NO_FILE_ACTION
Use the le specied in the le_name parameter as the log le, and the le specied in the
backup_le_name parameter as the backup le. After this command completes successfully, all log
messages of the type dened by log_le_type are written to the new log le. If a log le was used
before this command is issued, the log le is left unchanged.
DELETE_FILE
Delete the contents of the current log le.
BACKUP_FILE
Copy the contents of the current log le to the backup le, and then delete the contents of the current
le.
le_name
Name of the new log le.
To create the le in the default directory for diagnostics les, /var/opt/sna, specify the le name with
no path. To create the le in a different directory, specify either a full path or the path relative to the default
directory. If you include the path, ensure that it is a valid path (either a path relative to the applications
working directory or a full path) on any computer to which this command is issued.
This parameter is an ASCII string of 180 characters. To continue logging to the le specied on a previous
set_log_file command, do not specify this parameter. The initial defaults, before any set_log_file
command has been issued, are /var/opt/sna/sna.err for the error log le, /var/opt/sna/
sna.aud for the audit log le, and /var/opt/sna/sna.usage for the usage log le.
backup_le_name
Name of the backup log le. When the log le reaches the size specied by the le_size parameter, SNAplus2
copies the current contents to the backup le and then clears the log le. You can also request a backup at
any time using the action parameter.
To create the le in the default directory for diagnostics les, /var/opt/sna, specify the le name with
no path. To create the le in a different directory, specify either a full path or the path relative to the de-
fault directory. If you include the path, ensure that it is a valid path (either a path relative to the applications
working directory or a full path) on any computer to which this command is issued.
This parameter is an ASCII string of 180 characters, terminated with a null character (binary zero). To
continue using the backup le specied on a previous set_log_file command, do not specify this
parameter. The initial defaults, before any set_log_file command has been issued, are /var/opt/
sna/bak.err for the error log le, /var/opt/sna/bak.aud for the audit log le, and /var/opt/
sna/bak.usage for the usage log le.
le_size
The maximum size of the log le specied by log_le_type. When a message written to the le causes the
le size to exceed this limit, SNAplus2 copies the current contents of the log le to the backup log le and
clears the log le. The maximum amount of disk space taken up by log les is approximately twice le_size.
To continue using the le size specied on a previous set_log_file command, do not specify this
parameter. The initial default value, before any set_log_file command has been issued, is 1,000,000
bytes. A value of 0 indicates continue using the existing le size and not no limit.
You may need to increase the size of the audit and error log lesaccording to the size of the SNAplus2
client-server network, to allow for the volume of log information generated in larger systems. In particular,
consider increasing the log le size to allow for the following:
Accommodating large numbers of clients or users (because a single communications link failure may
result in large numbers of logs on the server relating to session failures)
589