PatchingJob - createSusePatchingJobWithTargetGroup
PatchingJob - createSusePatchingJobWithTargetGroup
Description :
This command creates a Patching Job that is run against a server group, using an existing SuSE catalog.
This command returns a handle to the newly created Patching Job. The handle can be used in other commands that need to reference the Patching Job.
The jobGroupName argument provides the fully qualified path to the parent group. The targetGroupName argument provides the target group name for the new Patching job. The catalog name provides the fully qualified path for the catalog already defined. The patching tool provides the tool to use for analysis. Valid values are ZYPPER, YUM (case insensitive). The include/exclude list text file could have entries for smart groups and/or depot objects one on each line. The depot objects and the smart group should be existing in the catalog before running this command. To include the depot object add NAME#(name of the depot object)" in the include file. To include a smart group add "GROUP#(complete path to the smart group)" in the include file. For instance, an example of the contents in the include/exclude list file could be NAME#APSB-0611 GROUP#/Catalog/TestCatalog1/smartGroup1. The patching mode provides one of the three supported modes. Valid values are INSTALL, UPDATE, DIST_UPGRADE (case insensitive).
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
jobName | String | Name of the job. |
groupName | String | Parent group for this job. |
targetGroupName | String | Name of the target server group. |
catalogName | String | SuSE Catalog group for this job. |
patchingTool | String | Patching Tool. Valid values are ZYPPER, YUM (case insensitive) |
includeFile | String | Include file path. |
excludeFile | String | Exclude file path. |
patchingMode | String | Patching Mode. Valid values are INSTALL, UPDATE, DIST_UPGRADE (case insensitive) |
setExactArch | Boolean | True to set exact architecture, false otherwise. |
Example
The following example creates a Patching Job that is run against a SuSE server group, using an existing catalog.
Script
JOB_GROUP=/noc/patching
TARGET_GROUP=testgroup
CATALOG_NAME=/noc/suseCatalog
PATCHING_TOOL=ZYPPER
PATCHING_MODE=UPGRADE
JOB_KEY=`blcli PatchingJob createSusePatchingJobWithTargetGroup nocPAJob $JOB_GROUP $TARGET_GROUP $CATALOG_NAME $PATCHING_TOOL //localhost/c/include.lst //localhost/c/exclude.lst $PATCHING_MODE false
Comments