PatchingJob - setRemediationWithDeployOptions


PatchingJob - setRemediationWithDeployOptions

Description :

This command sets remediation options on the Patching job. It lets the user apply all the options from an existing Deploy Job to the ones generated during the Remediation Job run. This command returns a handle to the job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

patchingJobKey

DBKey

Handle to the Patching Job.

pckPrefix

String

Prefix for naming the new Batch Job/Deploy Job/Package(s).

depotGroupName

String

Name of a group that should contain the new package(s).

depJobGroupName

String

Name of a group that should contain the generated Deploy Job(s).

deployJobKey

DBKey

Handle to the Deploy Job run whose options you want to use with generated Deploy Job(s).

Example

The following example sets remediation options on a Patching Job

Script


JOB_FOLDER="/DeployJobs"

JOB_NAME="TestDeployJob"

DEPOT_FOLDER="TestDepotGroup"

JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName "$JOB_FOLDER" "$JOB_NAME"`

PATCH_JOB_KEY=`blcli PatchingJob getDBKeyByGroupAndName "/PatchingJobs" "TestPatchingJob"`

PATCH_JOB_KEY_NEW=`blcli PatchingJob setRemediationWithDeployOptions "$PATCH_JOB_KEY" "prefix" "$DEPOT_FOLDER" "$JOB_FOLDER" "$JOB_KEY"



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.7