3.3.2 Displaying information related to the audit trail facility
This example displays information related to the audit trail facility.
adbaudittrail -u ADBAUDITVIEWER -p '#HelloHADB_VIEWER' -d
When the adbaudittrail -d command is executed, you can check the information related to the audit trail facility.
- Output example
-
audit write-error audit-directory-path audit-file-max-size audit-file-number ACTIVE DOWN /home/ADBAUDITADMIN/audit 256 100
Explanation of the output items
- audit
-
Displays the status information for the audit trail facility. One of the following values is displayed:
-
ACTIVE
The audit trail facility is enabled.
-
ACTIVE(NO OUTPUT)
The audit trail facility is enabled. However, output of audit trails to the audit trail file is suppressed.
-
INACTIVE
The audit trail facility is disabled.
-
- write-error
-
Displays the processing method if audit trails can no longer be written to the audit trail file because, for example, the disk is full or a disk failure occurs. The value specified for the --write-error option is displayed.
-
DOWN
The HADB server is set to terminate abnormally if an attempt to write to the audit trail file fails.
-
FAILSOFT
The HADB server is set to continue operation if an attempt to write to the audit trail file fails.
-
- audit-directory-path
-
Displays the audit trail directory. The directory name specified for the adb_audit_log_path operand in the server definition is displayed.
- audit-file-max-size
-
Displays the maximum size (in megabytes) of an audit trail file. The value of the adb_audit_log_max_size operand in the server definition is displayed.
- audit-file-number
-
Displays the maximum number of audit trail file generations. The value of the adb_audit_log_max_num operand in the server definition is displayed.
If you specify 0 for the adb_audit_log_max_num operand or if you omit the adb_audit_log_max_num operand, 0 is displayed. 0 indicates that the maximum number of audit trail file generations is not limited.