3 Replies Latest reply on Jul 27, 2015 11:39 AM by Bill Robinson

    Trying to cancel / kill "cancel pending job" via blcli commands

      Tried below blcli:


      blcli_execute PatchingJob getDBKeyByGroupAndName "${groupName}" "${jobName}"

      blcli_storeenv dbKey

      blcli_execute Job findByDBKey ${dbKey}

      blcli_execute Job getJobKey

      blcli_storeenv jobKey

      blcli_execute Job jobKeyToJobId $dbKey

      blcli_storeenv JOB_ID

      blcli_execute JobRun findLastRunByJobId $JOB_ID

      blcli_execute JobRun getJobRunId

      blcli_storeenv JOB_RUN_ID

      blcli_execute JobRun cancel ${jobKey} ${JOB_RUN_ID}


      also tried,...below command but no luck..

      blcli_execute JobRun cancel NAMED_OBJECT=${jobKey} ${JOB_RUN_ID}



      Command execution failed. com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Found command 'JobRun.cancel' but with mismatching arguments.

      : java.lang.IllegalArgumentException: Input 'DBKey:SJobKeyImpl:XXXXXX' cannot be converted to expected type : interface com.bladelogic.om.infra.app.