Information

This site will undergo a brief period of maintenance on Friday, 16 October at 2 AM Central/12:30 PM IST. During a 30 minute window, site availability will be intermittent.

Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

JobRun - getJobRunStatusByScheduleId


JobRun - getJobRunStatusByScheduleId

Description :

This command returns a string indicating job run status. Status can be:

  • NOT_STARTED
  • RUNNING
  • INCOMPLETE
  • COMPLETE
  • PAUSED
  • RESUMING
  • ABORTED
  • DOESNT_EXIST

Return type : String

Command Input :

Variable Name

Variable Type

Description

scheduleId

Integer

Schedule ID of the job.

Example

The following example shows how to find the status of a job run based on the job's schedule ID.

Script

JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots tstSnap`

SCHEDUlE_ID=`blcli Job executeAgainstServers $JOB_KEY engrhas21agt1,engrhas21agt2'

blcli JobRun getJobRunStatusByScheduleId $SCHEDULE_ID

 

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

BMC Server Automation Command Line Interface 8.3