8 Replies Latest reply on Jul 20, 2013 1:32 PM by Bill Robinson

    Need Help on Blcli return result


      Hello,

      I want to export the log of a NSHscript job with this code:

       

      #!/bin/nsh
      set -x

      JOB_KEY="`blcli_execute NSHScriptJob findByGroupAndName /Workspace/GLOB_BLAdmins/EGD Server_test`"

      RUN_KEY="`blcli_execute JobRun findLastRunKeyByJobKey $JOB_KEY`"

      JOB_ID="`blcli_execute JobRun jobRunKeyToJobRunId $RUN_KEY`"

      blcli_execute Utility exportNSHScriptRun $JOB_ID "./sampleJobResult.csv"

       

      But the first Blcli or Blcli_execute command return the following result:

       

      JOB_KEY=com.bladelogic.om.infra.model.job.script.NSHScriptJobImpl@770b83f3

       

       

      How do I get the job_key value?

      Does anyone can help me?

      Thanks a lot