FileDeployJob - createJobByServers
FileDeployJob - createJobByServers
Description :
Creates a File Deploy Job, with a given list of servers as targets. The return value is the DBKey of the created job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobName | String | Name of the File Deploy Job. |
jobGroup | String | Path to the job group where the job is to be saved. |
sourceFiles | com.bladelogic.om.infra.cli.helper.StringList | The source files for the job. These must be specified in nsh format and may reside on remote hosts. |
destination | String | The destination directory for the File Deploy. This must be specified in nsh format and must reside on the local host. |
isPreserveSourceFilePaths | Boolean | True indicates that source file paths should be preserved. |
numTargetsInParallel | Integer | The number of targets to process in parallel. A value of 0 specifies that the number of targets is unlimited. |
targetServerNames | com.bladelogic.om.infra.cli.helper.StringList | List of servers where the job is to be run. |
Example
The following example creates a File Deploy Job with two servers as targets.
Script
FileDeployJob createJobByServers JobName /JobGroup "//remotehost/C/sourceDir1/file1.txt,/C/sourceDir2/file2.txt" /C/destDir false 1 "TargetServer1,TargetServer2"