Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP-UX SNAplus2 Administration Command Reference > Chapter 3 Commands (query_3270_diag to query_userid_password)

query_log_file

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The query_log_file command enables you to determine the name of the file that SNAplus2 uses to record audit or error log messages, the name of the backup log file, and the file size at which log information is copied to the backup file.

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)

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. If a 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

The maximum size of the log file specified by log_file_type. When a message written to the file causes the file size to exceed this limit, SNAplus2 clears the backup log file, copies the current contents of the log file to the backup log file, and then clears the log file. The maximum amount of disk space taken up by log files is approximately twice the value of file_size.

Error Return Codes

If the command cannot be executed, SNAplus2 returns a primary return code to indicate the type of error and a secondary return code to provide specific details about the reason for unsuccessful execution.

Parameter Check

No parameter errors occur for this command.

State Check

No specific 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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2001 Hewlett-Packard Development Company, L.P.