Utility - exportSnapshot_1
Utility - exportSnapshot
Description :
This command exports the snapshot result from the latest run of this Snapshot Job.
Use this version of the command if more than one component template is defined in the Snapshot Job.
Use the optional templateGrpName, templateName and serverName arguments to export one snapshot at a time, in a situation where your Snapshot Job finds multiple snapshots.
For a server object based Snapshot Job, you can leave templateGrpName and templateName empty. Also, for a template based Snapshot Job, if there is only one template used, you can leave templateGrpName and templateName empty.
You can save the snapshot result in HTML or CSV format.
Return type : java.lang.Void
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
jobGroupName |
String |
Fully qualified job group where the Snapshot Job is stored. |
jobName |
String |
Name of the Snapshot Job to export. |
templateGrpName |
String |
Fully qualified template group name of the template used in the Snapshot job. |
templateName |
String |
Name of the template used in the Snapshot job. |
serverName |
String |
Name of the target server used in the Snapshot job. |
exportFileName |
String |
Name of the file that holds the export. |
exportType |
String |
Format for saving exported results (CSV or HTML). |
Example
The following example shows how to export the latest job run result of a Snapshot Job.
Script
Utility exportSnapshot "/sampleJobGroup" "sampleJob" "/tmpGrp" "tmp1" "server1" "C:/temp/sampleJobResult.csv" "CSV"
Comments
Log in or register to comment.