nbauditreport

nbauditreport — view the audit report

SYNOPSIS

<admin_dir_path>nbauditreport -sdate "MM/DD/YY [HH:[MM[:SS]]]" [-edate "MM/DD/YY [HH:[MM[:SS]]]" -ctgy [POLICY | JOB | AUDITCFG | AUDITSVC] -user username[:domainname] -fmt [SUMMARY | DETAIL | PARSABLE] [-notruncate] [-pagewidth NNN] [-order [DTU | DUT | TDU | TUD | UDT | UTD]]

On Windows systems, <admin_dir_path> is <install_path>\NetBackup\bin\admincmd\

DESCRIPTION

The nbauditreport command lets you create and view a NetBackup audit report.

When auditing is configured in a NetBackup environment, the following user-initiated actions in NetBackup are recorded and available to view in an audit report:

  • Actions that change the NetBackup configuration. Examples are policy creation, deletion, and modification, and changing the audit settings.

  • Actions that change NetBackup runtime objects. These actions include initiating a restore job and starting or stopping the audit service.

This command only creates and displays the audit report. You must use the nbemmcmd -changesetting -AUDIT ENABLED and nbemmcmd -changesetting -AUDIT DISABLED commands to enable and disable auditing itself.

More information is available on auditing and audit reports.

See the Auditing NetBackup administration chapter of the NetBackup Administrator's Guide, Vol. I.

OPTIONS

-ctgy [POLICY | JOB | AUDITCFG | AUDITSVC]

Specifies the type of information to be displayed in the audit report. The following are the possible values for this option:

  • POLICY displays only the information that is related to policy changes.

  • JOB displays only the information that is related to jobs.

  • AUDITCFG displays only the information pertaining to auditing configuration changes.

  • AUDITSVC displays only the information that is related to starting and stopping the NetBackup Audit service (nbaudit).

The default condition, when none of the options is specified, is to display the audit report of all categories.

-fmt [SUMMARY | DETAIL | PARSABLE]

Specifies the output format of the audit report.

  • SUMMARY is the default condition (no option used). The audit report is a summary only. It displays the audit report in columnar format using the description, user, and timestamp headings.

  • DETAIL displays a comprehensive list of auditing information. For example, when a policy is changed, this view lists the name of the attribute, the old value, and the new value.

  • PARSABLE displays the same set of information as the DETAIL report but in a parsable format. The report uses the pipe character (|) as the parsing token between the audit report data.

-sdate mm/dd/yyyy-hh:mm:ss | mm/dd-hh:mm -edate mm/dd/yyyy-hh:mm:ss | mm/dd-hh:mm

Sets the start date/time (-sdate) or the end date/time (-edate) of the audit report data that you want to view. No time indication is necessary.

If the start date is specified and the end date is not, the displayed audit data is from the specified start time to the present. If the end date is specified and the start date is not, the displayed audit data is up to the present.

-notruncate

Displays the old and new values of a changed attribute on separate lines in the details section of the report. This option is used with the -fmt DETAIL option.

-order [DTU | DUT | TDU | TUD | UDT | UTD]

Specifies the order in which the information is displayed in the parsable format of the audit report. This option can be used only with the -fmt PARSABLE option. The D, T, and U designators represent the following parameters:

  • D - description

  • T - timestamp

  • U - user

-pagewidth NNN

Specifies the page width for the details section of the audit report. This option is used with the -fmt DETAIL option.

-user username[:domainname]

Indicates the name of the user for whom you want to display audit information.

EXAMPLES

EXAMPLE 1

The following command displays all audit events that are reported from April 1, 2010 to the present.

# nbauditreport -sdate 04/01/10

USER		 DESCRIPTION												TIMESTAMP   
Admin@entry  Schedule 'test1' was added to Policy 'test1'			 04/06/10 
Admin@entry  Audit setting(s) of master server 'server1' were modified  04/06/10 
Admin@entry  Audit setting(s) of master server 'server1' were modified  04/06/10 
sys@server1  The nbaudit service on master server 'server1' was started 04/06/10 
sys@server1  The nbaudit service on master server 'server1' was stopped 04/06/10 
sys@server1  The nbaudit service on master server 'server1' was started 04/06/10 
sys@server1  The nbaudit service on master server 'server1' was started 04/01/10 

Audit records fetched: 7

EXAMPLE 2

The following command displays a detailed audit report for when Joe modified a set of policy attributes. Because the policy was changed only one time since 6/8/10, one audit record is retrieved.

# nbauditreport -fmt DETAIL -ctgy POLICY -sdate 6/8/10

DESCRIPTION: Attributes of Policy 'pol_stugrp' were modified
USER: joe
TIMESTAMP: 06/08/2010 19:14:25
CATEGORY: POLICY
ACTION: MODIFY
DETAILS:
	ATTRIBUTE				OLD VALUE				 NEW VALUE
  1 Proxy Client
  2 Residence										stu_grp
  3 Collect TIR info		 2						 0
  4 Checkpoint Restart	 0						 1
  5 Checkpoint Interval	0						 15
  6 Data Mover Type		2						 -1
  7 Collect BMR Info		 1						 0
  8 Policy Generation		1						 2

Audit records fetched: 1

The DETAILS entry shows the old value and new value of all the attributes that Joe changed.