2 Replies Latest reply on Nov 5, 2013 6:57 AM by Cyrille Gaillard

    How to list all objects in a SmartDepotGroup (blcli)?

    Cyrille Gaillard

      How to list all objects in a SmartDepotGroup ? in blicli commands.

      The "blcli_execute DepotObject listAllByGroup" command is OK for a depotgroup but not for a SmartDepotGroup.

        • 1. Re: How to list all objects in a SmartDepotGroup (blcli)?
          Bill Robinson



          blcli_setoption serviceProfileName defaultProfile

          blcli_setoption roleName BLAdmins




          blcli_execute SmartDepotGroup groupNameToId "${depotGroup}"

          blcli_storeenv depotGroupId

          blcli_execute DepotObject findAllHeadersByGroup ${depotGroupId}

          blcli_execute Utility storeTargetObject depotObjectHeaders

          blcli_execute Utility listLength

          blcli_storeenv listLength


          echo ${listLength}

          for item in {0..$((${listLength}-1))}


                  blcli_execute Utility setTargetObject depotObjectHeaders

                  blcli_execute Utility listItemSelect ${item}

                  blcli_execute Utility setTargetObject

                  blcli_execute SDepotObjectHeader getDBKey

                  blcli_storeenv depotObjectKey

                  blcli_execute SDepotObjectHeader getObjectTypeId

                  blcli_storeenv depotObjectTypeId

                  blcli_execute SDepotObjectHeader getName

                  blcli_storeenv depotObjectName

                  blcli_execute SDepotObjectHeader getGroupId

                  blcli_storeenv groupId

                  blcli_execute Group findById ${groupId}

                  blcli_execute Group getType

                  blcli_storeenv groupTypeId

                  blcli_execute Group getQualifiedGroupName ${groupTypeId} ${groupId}

                  blcli_storeenv groupPath

                  echo "${groupPath}/${depotObjectName}..." >> $$.out