Cisco Cisco Workload Automation 6.3 Guía Del Usuario

Descargar
Página de 86
77
Using the Transporter Export/Import Utility
Using the Export/Import Command Line Interface
Note: 
If you are using a selection file, you do not need to use the "-s" option as the option is already specified in 
the selection file (unless you wish to override the parameter value).
-d <destination-directory-name> - Specify the name of the directory in which the files containing exported 
data should be placed. (Required)
-IR - Export indirectly related artifacts. Using this option causes the export of additional artifacts that are not directly 
related to the exported jobs.
At least one of these options must be specified: 
-a-g, or -i.
Examples:
Export a job group:
transcmdline[.sh] -T exportjob -s MySource -g "\Delta Import" -d "C:\Output\Mar19\Job1"
Export a selection file:
transcmdline[.sh] -T exportjob -i "C:\Jobsel.xpr" -d "C:\Output\Mar19\Job2"
Note: 
Child jobs or job groups are recursively fetched by default (as complete data should be present at the time of 
import).
Exporting Calendars
You use the following command and parameters with the Transporter to export a calendar or selection file containing 
calendar data to your file system. 
Syntax: 
$ transcmdline[.sh] -T exportcal [-c <calendar-name> | -i <selection-file>]  -s 
<source-connection-name> -d <destination-directory-name>
Options:
-T exportcal - Indicate that the transcmdline tool is going to export calendar data to a file rather than work as a 
transporter. ‘-T’ stands for Task. (Required)
-c <calendar-name> - Specify the calendar name to be exported.
-i <selection-file> - Use this option to export multiple calendars saved in a selection file. The selection file 
must already have been created using the Transporter. See “Saving the Job/Job Group Object Selections” in the 
Transporter User Guide for information about selection files.
-s <source-connection-name> - Specify the file name containing the source system connection details. 
(Required except if using a selection file. See Note below.)
-d <destination-directory-name> - Specify the name of the directory in which the files containing exported 
data should be placed. (Required except if using a selection file. See Note below.)
Note: 
If you are using a selection file, you do not need to use the "-s" and "-d" options as the options are already 
specified in the selection file (unless you wish to override the parameter values).
At least one of these options must be specified: 
-c or -i.
Example:
Export a calendar:
transcmdline[.sh] -T exportcal -s MySource -c "\Daylight Savings" -d "C:\Output\Mar19\Cas1"