1 Reply Latest reply on Sep 24, 2014 6:36 AM by Bill Robinson

    BLCLI Run Provisioning job and wait for result

    Tomáš Pustka



      Is there possibility to run provisioning job by NSH and wait with NSH script for provisioning job result, then stop the NSH job after provisioning job is completed?


      #Provisioning Job execution



      #blcli_execute Job executeJobAndWaitForRunID $NEW_PROVISION_JOB_DBKEY

      #blcli_storeenv AE_PROVISION_JOB_DBKEY

      JOB_RUN_KEY=`blcli_execute Job executeJobAndWaitForRunID $NEW_PROVISION_JOB_DBKEY`

      #JOB_RUN_KEY=`blcli NSHScriptJob executeJobAndWait $NEW_PROVISION_JOB_DBKEY`

      blcli_storeenv JOB_RUN_KEY

      echo "Job Run Key: ${JOB_RUN_KEY}"

        • 1. Re: BLCLI Run Provisioning job and wait for result
          Bill Robinson

          doesn't the 'Job executeJobAndWaitForRunID' work?


          as soon as the provisioning job is completed then the nsh script would exit, assuming that's all that is running.



          also - if you are going to use the blcli_performance commands use them right, eg

          don't do this:

          JOB_RUN_KEY=`blcli_execute Job executeJobAndWaitForRunID $NEW_PROVISION_JOB_DBKEY`


          do this

          blcli_execute Job executeJobAndWaitForRunID $NEW_PROVISION_JOB_DBKEY

          blcli_storeenv JOB_RUN_ID