1 2 3 Previous Next 34 Replies Latest reply on Nov 13, 2013 9:23 AM by Bill Robinson

    BSA 8.2: BLCLI to create software deploy job

      I ran the following script, that i created based on BLCLI help.

       

      JOB_GROUP_NAME=/test2

      TARGET_SERVER=10.98.241.137

      TARGET_GROUP="/Workspace/All Servers"

      DEPLOY_JOB_NAME="Deploy MSI Package"

      SIMULATE=true

      COMMIT=true

      INDIRECT=false

      SOFTWARE_TYPE=MSI_WINDOWS_INSTALLABLE

      DEPLOY_OPTS="$SIMULATE $COMMIT $INDIRECT"

      SOFTWARE_KEY=`blcli -v defaultProfile -r BLAdmins DepotObject getDBKeyByTypeStringGroupAndName $SOFTWARE_TYPE /Depot "winzip155.msi"`

      GROUP_ID=`blcli -v defaultProfile -r BLAdmins JobGroup groupNameToId "${JOB_GROUP_NAME}"`

      DEPLOY_JOB_KEY=`blcli -v defaultProfile -r BLAdmins DeployJob createSoftwareDeployJob "${DEPLOY_JOB_NAME}" $GROUP_ID $SOFTWARE_KEY $SOFTWARE_TYPE $TARGET_SERVER $DEPLOY_OPTS`

      DEPLOY_JOB_KEY=`blcli -v defaultProfile -r BLAdmins Job addTargetGroup $DEPLOY_JOB_KEY "${TARGET_GROUP}"`

       

      but getting following error:

       

      Unknown command : name space = 'DeployJob', command = 'createSoftwareDeployJob'.

      com.bladelogic.om.infra.cli.factory.CommandNotFoundException: DeployJob,createSo

      ftwareDeployJob Method found but with mismatching arguments. Error was : Bad db

      key token : Command

      Unknown command : name space = 'Job', command = 'addTargetGroup'.com.bladelogic.

      om.infra.cli.factory.CommandNotFoundException: Found command 'Job.addTargetGroup

      ' but with mismatching arguments. : java.lang.IllegalArgumentException: Wrong nu

      mber of arguments provided to method : addTargetGroup expected : 2 received : 1

        1 2 3 Previous Next