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.

Utility - exportProvisionRun


Utility - exportProvisionRun

Description :

This command exports the results (job run log) of a Provision Job run to a file. You must identify the job run by its run ID.

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

runId

Integer

ID of the Provision Job run whose results you want to export.

exportFileName

String

Name of the file that holds the export.

Example

The following example shows how to export the job run result of a Provision Job.

Script





#Run a provision job, which returns the job's job key 

JOB_KEY=`blcli Provision provisionDevice 2000000 11-aa-22-bb-33-cc 1 file:///c:/propfile.txt`

#Get the run key for this job run

RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_KEY`

#Get the job run ID

JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $RUN_KEY`

#Export the job run log

blcli Utility exportProvisionRun          $JOB_RUN_ID  "C:/temp/sampleJobResult.csv"



 

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