Cisco Cisco Workload Automation 6.3 Guía Del Usuario

Descargar
Página de 86
82
Using the Transporter Export/Import Utility
Using the Export/Import Command Line Interface
Windows: C:\Users\Administrator\.transporter\report\
UNIX: /root/.transporter/report/
Syntax: 
$ transcmdline[.sh] 
-
T [importjob|importcal] -s <source-directory-name> -d 
<destination-connection-name> -m <map-file> -CO
Options:
-T importjob|importcal - Indicate that the transcmdline tool is going to import job or calendar data from a file 
rather than work as a transporter.‘-T’ stands for Task. (Required)
-s <source-directory-name> - Specify the name of the directory in which the files containing exported data 
reside. (Required)
-d <destination-connection-name> - Specify the file name containing the destination system connection 
details. (Required)
-m <map-file> - Specify the name of the map file used to resolve static data differences. A map file must have 
been created and saved using the Transporter utility. See the “Mapping Data Objects” chapter in the CWA 
Transporter User Guide
.
-CO - Use this option to see a “comparison” of the export files with the destination CWA system instead of perform 
an actual import. A report file named compareReport.txt is created one of these directories:
Windows: C:\Users\Administrator\.transporter\report\.
UNIX: /root/.transporter/report/
Example:
Compare import files in the \Job1 directory with the destination CWA and generate a compare report:
transcmdline[.sh] -T importjob -s "C:\Output\Mar19\Job1" -d MyDest -m "C:\Import.map" -CO
Deleting Jobs and Job Groups
When you delete a job or job group, the utility only deletes jobs and direct relationships between jobs and related objects 
but does not delete the related objects themselves.
Note: 
Be sure to create a backup of the database before invoking the command to delete a job or job group. 
You use the following command and parameters with the Transporter to delete a job or job group from a destination 
system. 
Syntax: 
$ transcmdline[.sh] -T deletejob  [-a <job-alias> | -g <job-group-name> ] -d 
<destination-connection-name> 
Options:
-T deletejob - Indicate that the transcmdline tool is going to delete job data rather than work as a transporter.‘-T’ 
stands for Task. (Required)
-d <destination-connection-name> - Specify the file name containing the destination system connection 
details. (Required)
-a <job-alias> - Specify the job to be deleted.
-g <job-group-name> - Specify the job group to be deleted.