PatchingJob - createDebianPatchingJobWithTargetServer

PatchingJob - createDebianPatchingJobWithTargetServer

Description :

This command creates a Patching Job that is run against a server, using an existing Debian catalog.

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 include/exclude list text file has entries for smart groups and/or depot objects, one on each line. The depot objects and the smart group must exist 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 example:

NAME#APSB-0611

GROUP#/Catalog/TestCatalog1/smartGroup1

The distribution file can be given to include only the given set of distributions from the catalog in the patching job. If the distribution file is not given then all distributions selected in the catalog will be included in the patching job. The format of distributions should in the below format:

With specifying architecture : deb os=ubuntu version=11.10 arch=x86,x86_64 http://archive.ubuntu.com/ubuntu oneiric main restricted

Without specifying architecture will select all architecture available : deb os=ubuntu version=11.10 http://archive.ubuntu.com/ubuntu oneiric main restricted 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.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobName

String

Name of the job.

groupName

String

Parent group for this job.

serverName

String

Name of the target server

catalogName

String

Debian Catalog group for this job.

includeFile

String

Include file path.

excludeFile

String

Exclude file path.

distributionFile

String

Distributions file path

mode

String

Mode of the patching job - INSTALL, UPDATE

Example

The following example creates a Patching Job with a single Debian server using an existing catalog.

Script





JOB_GROUP=/noc/patching 

TARGET_SERVER=testServer 

CATALOG_NAME=/noc/winCatalog 

JOB_KEY=`blcli PatchingJob createDebianPatchingJobWithTargetServer nocPAJob $JOB_GROUP $TARGET_SERVER $CATALOG_NAME //localhost/c/include.lst //localhost/c/exclude.lst //localhost/c/distributions.lst update 



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

Comments