Job - jobExistsByTypeStringGroupAndName

Job - jobExistsByTypeStringGroupAndName

Description :

This command determines whether a job exists when you identify the job by its name and full path of the static group. You must also provide a string describing the type of job. The following is a list of all valid job type strings:

  • AGENT_INSTALLER_JOB
  • AIX_PATCHING_JOB
  • AUDIT_JOB
  • COMPLIANCE_JOB
  • COMPONENT_DISCOVERY_JOB
  • DEPLOY_JOB
  • FILE_DEPLOY_JOB
  • NSH_SCRIPT_JOB
  • OTHER_LINUX_PATCHING_JOB
  • PLUGIN_DEREGISTRATION_JOB
  • PLUGIN_DISTRIBUTION_JOB
  • PROVISION_JOB
  • REDHAT_PATCHING_JOB
  • RPM_LINUX_PATCHING_JOB
  • SCAP_COMPLIANCE_JOB
  • SNAPSHOT_JOB
  • SOLARIS_PATCHING_JOB
  • UBUNTU_PATCHING_JOB
  • UCS_PROVISION_JOB
  • VGTEMPLATE_ENROLLMENT_JOB
  • VIRTUAL_GUEST_JOB
  • VSM_DISCOVERY_JOB
  • WINDOWS_PATCHING_JOB
  • WORKFLOW_JOB

This command returns true if the job exists; otherwise it returns false.

Return type : Boolean

Command Input :

Variable Name

Variable Type

Description

typeString

String

String representation of job type. For more detailed information, see the description above.

groupPath

String

Fully qualified static group name of the job.

jobNameStringName of the job.


Example

The following example shows how to check if a job exists in a static group for a specified job type, group path, and job name.

Script

blcli Job jobExistsByTypeStringGroupAndName NSH_SCRIPT_JOB "/Workspace" "MyScriptJob"
Was this page helpful? Yes No Submitting... Thank you

Comments