Utility - simpleExportAudit
Utility - simpleExportAudit
Description :
This command exports an Audit Job and gives you more control over the resulting output than other similar commands. The exported file is saved in CSV format.
This command reports on each asset (that is, 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. |
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 simpleExportAudit "/sampleJobGroup" "sampleJob" "C:/temp/sampleJobResult.csv" "Size,Checksum"
Comments
Log in or register to comment.