1 Reply Latest reply on Jul 8, 2015 12:18 PM by Bill Robinson

    Unknown command for NSHScriptJob addNamedServerToJobByJobDBKey?

    michael huttner

      Odd, I'm getting an error using a namespace command as documented... why??


      blcli -t BLSSO -v My_Profile -r MY_ROLE -w profile.xml NSHScriptJob addNamedServerToJobByJobDBKey DBKey:SDeviceModelKeyImpl:2489672-58390432 lkcma60489

      Unknown command : name space = 'NSHScriptJob', command = 'addNamedServerToJobByJobDBKey'.com.bladelogic.om.infra.cli.factory.CommandNotFoundException: R: Cannot find command : NSHScriptJob, addNamedServerToJobByJobDBKey


      According to doc page (eg, http://www.techjeeper.com/BLCLI/NSHScriptJob.html)  the command should work as follows..

      In this example, an NSHScipt Job handle is found using NSHScriptJob getDBKeyByGroupAndName, and the target server is added to the job. This same action can be performed with Job addTargetServer



      JOB_KEY=`blcli NSHScriptJob getDBKeyByGroupAndName /east/noc restartdb`

      JOB_KEY=`blcli NSHScriptJob addNamedServerToJobByJobDBKey $JOB_KEY $TARGET_SERVER`