ComponentDiscoveryJob - setDescription


ComponentDiscoveryJob - setDescription

Description :

This command sets the description for a job. This command returns a handle to the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

The handle to the Component Discovery Job.

desc

String

The description for the job.

Example

The following example shows you how to get set the description for a job.

Script


# Name of the existing job.

JOB_NAME="componentdiscoveryjob"

# Job group in which Component Discovery Job is stored.

JOB_GROUP="/Workspace/Component Discovery"

# Get the Component Discovery Job DBKey using the above information.

JOB_DBKEY=`blcli ComponentDiscoveryJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`

# Set the Component Discovery Job description.

JOB_DBKEY=`blcli ComponentDiscoveryJob setDescription $JOB_DBKEY "Oracle DB Compliance"`



 

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