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 - exportNSHScriptRun

Utility - exportNSHScriptRun

Description :

This command exports the results (job run log) of a NSH Script 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




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



Name of the file that holds the export.


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


$JOB_KEY=`blcli NSHScriptJob getDBKeyByGroupAndName "/sampleJobGroup" "sampleJob"`
$RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_KEY` 

$JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $RUN_KEY` 

blcli Utility exportNSHScriptRun $JOB_RUN_ID "C:/temp/sampleJobResult.csv" 
Was this page helpful? Yes No Submitting... Thank you


  1. Aleksey Forkosh

    Is there a away to achieve same functionality via REST interface? I really would love to get to the job results (export them) wwithout using blcli or the gui.


    Thank you!

    Jan 24, 2015 01:26
    1. Yechezkel Schatz

      Export of BSA job results is not currently supported through the REST interface. If you'd like, you can submit an RFE to request functionality.

      Thanks for the feedback!

      Mar 15, 2015 04:54