Configuring auditing on a NetBackup master server
Auditing is enabled by default in new installations. However, the default may be enabled or disabled after an upgrade, depending on the setting before the upgrade.
NetBackup auditing can be configured directly on a NetBackup master server or by using OpsCenter.
The master server settings for enabling or disabling audit logging and setting the retention period are configured in the Manage > Hosts section of OpsCenter. Within OpsCenter, the expiration setting for Audit logs is configured under Settings > Purge.
See the NetBackup OpsCenter Administrator's Guide for more details.
To configure auditing on a master server, use the nbemmcmd command with the -changesetting option.
To configure NetBackup auditing on a master server
- From a command prompt, locate the nbemmcmd command on the master server in the following directory:
On Windows:
Install_path\Veritas\NetBackup\bin\admincmd
On UNIX:
/usr/openv/netbackup/bin/admincmd
- Enter the nbemmcmd command using the following syntax:
nbemmcmd -changesetting -AUDIT DISABLED -machinename masterserver
Where -AUDIT DISABLED turns off auditing on the master server that is indicated.
In the following example, auditing has been turned off for server1.
For example:
nbemmcmd -changesetting -AUDIT DISABLED -machinename server1
- Configure the audit retention period using the following syntax:
nbemmcmd -changesetting -AUDIT_RETENTION_PERIOD number_of_days -machinename masterserver
Where number_of_days indicates (in days) how long audit records are to be retained for the audit report. If no retention period is indicated, the default audit retention period is 90 days.
Note:
An audit retention period value of 0 (zero) indicates that the records are never deleted.
OpsCenter downloads the audit records periodically and retains them for a period of time that is configurable in OpsCenter. Retaining the audit records on the master server is only necessary if you want to view audit reports using the command line on the master server.
See the following topic for more information.
See Retaining and backing up audit trail records.
In the following example, the records of user actions are to be retained for 30 days and then deleted.
nbemmcmd -changesetting -AUDIT_RETENTION_PERIOD 30 -machinename server1
The two options can be combined in one command line, as in the following example:
nbemmcmd -changesetting -AUDIT ENABLED -machinename server1 -AUDIT_RETENTION_PERIOD 30
- Run nbauditreport to display a report of the audited information.
Note:
When a back level media server connects to an 8.0 master server, the nbauditreport operation fails. Upgrade the media server to 8.0 to successfully run the nbauditreport operation.