Utility - simpleExportAuditResultV2


Utility - simpleExportAuditResultV2

Description :

This command exports an Audit Job and provides more control over the resulting output than other similar commands. The exported file is saved in CSV format.

This command reports on each asset (server object) in the Audit Job that differs from the corresponding asset in the master. For each asset, a row is added to the file with some default columns of information. You can also include additional information for each asset using the additionalColumns argument. For this argument, you provide column names in the form of a string list (for example, Size:Checksum or Size,Checksum). If a column does not apply to an asset type, an empty value appears in that row for that type of asset.

Return type : java.lang.Void

Command Input:

Variable name

Variable type

Description

jobGroupName

String

Fully qualified job group where the Audit Job is stored.

jobName

String

Name of the Audit Job to export.

runId

Integer

ID of the Audit job run to be exported.

exportFileName

String

Name of the file that holds the export.

additionalColumns

com.bladelogic.om.infra.cli.helper.StringList

String list of additional columns of information to include in the report.

Example

The following example shows how to export the latest job run result of an Audit Job.

Script

Utility simpleExportAuditResultV2 "/sampleJobGroup"  "sampleJob" 2000007 "C:/temp/sampleJobResult.csv" "Size,Checksum"

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*