Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may 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.

AuditJob - findJobResultKey


AuditJob - findJobResultKey

Description :

This command is deprecated. Please consider using findJobResultKey .

This command finds a handle to an Audit Job result. You must provide handles identifying the job and the job run. This command returns a handle to the job result. This handle can be used in other commands that need to reference the results of the Audit Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle associated with the job.

jobRunKey

DBKey

Handle associated with a particular job run.

Example

The following example shows how to specify a job run for an Audit Job and obtain the result key:

Script





AUDIT_JOB_KEY=`blcli AuditJob getDBKeyByGroupAndName /Audits basefileaudit`

#get all the run keys

RUN_KEYS=`blcli JobRun findAllRunKeysByJobKey $AUDIT_JOB_KEY`

#select out the run of interest.

for RUN_KEY in "${RUN_KEYS[@]}"

do # some selection.

START_TIME=`blcli JobRun getStartTimeByRunKey $RUN_KEY`

if [ "$START_TIME"="$DESIRED_TIME" ]

NEEDED_RUN_KEY=$RUN_KEY

fi

done

JOB_RESULT_KEY=`blcli AuditJob findJobResultKey $AUDIT_JOB_KEY $NEEDED_RUN_KEY`



 

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

BMC Server Automation Command Line Interface 8.3