Enabling NetBackup auditing

By default, auditing is disabled. Use the nbemmcmd command with the -changesetting option to enable and configure NetBackup auditing.

To enable NetBackup auditing

  1. From a command prompt, locate the nbemmcmd command in the following directory:

    C:\Program Files\Veritas\NetBackup\bin\Admincmd
    
  2. Enter the nbemmcmd command using the following syntax:

    nbemmcmd -changesetting -AUDIT ENABLED -machinename masterserver
    

    Where -AUDIT ENABLED turns on auditing on the master server that is indicated.

    In the following example, auditing has been turned on for server1.

    For example:

    nbemmcmd -changesetting -AUDIT ENABLED -machinename server1
    
  3. 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 user actions are to be retained for the audit report. If no retention period is indicated, the default audit retention period is 365 days. A value of 0 (zero) indicates that the records are never purged.

    In the following example, the records of user actions are to be retained for 30 days and then purged.

    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
    
  4. Run nbauditreport to display a report of the audited information.

    See Viewing the audit report.