FileDeployJob - createJobByServerGroups

FileDeployJob - createJobByServerGroups

Description :

Creates a File Deploy Job, with a given list of server groups 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.

targetServerGroups

com.bladelogic.om.infra.cli.helper.StringList

List of server groups containing servers where the job is to be run.

Example

The following example creates a File Deploy Job with two server groups as targets.

Script





FileDeployJob createJobByServerGroups JobName /JobGroup "//remotehost/C/sourceDir1/file1.txt,/C/sourceDir2/file2.txt" /C/destDir false 1 "ServerGroup1,ServerGroup2" 



Was this page helpful? Yes No Submitting... Thank you

Comments