1 Reply Latest reply on Jan 14, 2015 1:46 PM by Bill Robinson

    interesting output for getNSHScriptJobParamOptions

    Narahari Lakshminarayana

      Friends:


      I ran the following code and the ones you see in green show that the data is right when the getNSHScriptParamOptions is called.  But the ones in orange show that the Utility namespace is unable to set the right type of data into memory for further processing.  Am I doing this wrong ?


      Please advise.


      -Narahari


      DC1PRBLTS13% jobGroup="/USS Job Workspace/Presentation Services/Portal/Users/Narahari"

       

      DC1PRBLTS13% jobName="getJobTypeForGivenJob"

       

      DC1PRBLTS13% blcli_execute NSHScriptJob getDBKeyByGroupAndName "$jobGroup" $jobName

      DBKey:SJobModelKeyImpl:5076204-2-84888565

       

      DC1PRBLTS13% blcli_execute NSHScriptJob getNSHScriptJobParamOptions

      [com.bladelogic.om.infra.model.job.script.NSHScriptJobParamRuntimeOptionsImpl@c05ae5de, com.bladelogic.om.infra.model.job.script.NSHScriptJobParamRuntimeOptionsImpl@c05b5a5c]

       

      DC1PRBLTS13% blcli_execute Utility storeTargetObject paramOptions

      com.bladelogic.om.infra.model.job.script.NSHScriptJobImpl@11d09a06

       

      DC1PRBLTS13% blcli_execute Utility setTargetObject paramOptions

      com.bladelogic.om.infra.model.job.script.NSHScriptJobImpl@11d09a06

       

      DC1PRBLTS13% blcli_execute Utility listLength

      Command execution failed. java.lang.IllegalArgumentException: Input object was not a list : com.bladelogic.om.infra.model.job.script.NSHScriptJobImpl@11d09a06