1 2 Previous Next 17 Replies Latest reply on Jul 23, 2014 9:01 AM by Srujana bollina

    Need help to replace depot file via blcli

          
      I want to replace existing depot file with blcli.The version I'm using is 7.6.

      I have tried lot of commands(DepotSoftware updatesourcelocation,ImportExport importobject...etc)

      But didnt find the correct command to be used.

      Can anyone please help me in this.

       

      Option1 tried :

      Mappings.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE mapping SYSTEM "file://bladelogic.com/dtds/Import-Mapping.dtd">

      <mapping>

          <grouped_object_mapping>

              <source_object>

                  <object_type>DEPOT_FILE_OBJECT</object_type>

                  <object_name>abc.war</object_name>

                  <group_id>3684467</group_id>

              </source_object>

              <!--This is the path to the group into which the object will be imported-->

              <containing_group>/group/abc.war</containing_group>

          </grouped_object_mapping>

      </mapping>

      Command:

      blcli -v profilename -r Rolename ImportExport importObject /d/Credit/abc.war /d/Credit/abc.war/mappings.xml

      Result: Command execution failed.  /d/Credit/abc.war/mappings.xml

       

      Option 2 tried with mappings.xml generated when exported depotfile:

      Mappings.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE mapping SYSTEM "file://bladelogic.com/dtds/Import-Mapping.dtd">

      <mapping>

          <grouped_object_mapping>

              <source_object>

                  <object_type>DEPOT_FILE_OBJECT</object_type>

                  <object_name>abc.war</object_name>

                  <group_id>3684467</group_id>

              </source_object>

              <!--This is the path to the group into which the object will be imported-->

              <containing_group>/group/abc.war</containing_group>

          </grouped_object_mapping>

      </mapping>

      Command:

      blcli -v profilename -r Rolename ImportExport importObject /d/Credit/abc.war /d/Credit/mapping.xml

      Result: Command execution failed.  /d/Credit/abc.war/blexport.xml

       

      Option 3 Tried :
      Tried with option of UpdateSourceLoctaion via batch file

      @echo off
      blcred cred -acquire -profile profilename -username username -password pwd
      set DEPOT_TYPE="DEPOT_FILE_OBJECT"
      set DEPOT_GROUP="/group"
      set FILE_NAME="abc.war"
      set SCRIPT_KEY=
      for /f "delims=" %%a in ('blcli -v profilename -r rolename DepotObject getDBKeyByTypeStringGroupAndName %DEPOT_TYPE% %DEPOT_GROUP% %FILE_NAME%') do @set SCRIPT_KEY=%%a
      echo SCRIPT_KEY= %SCRIPT_KEY%
      blcli -v profilename -r rolename DepotSoftware updateSourceLocation %SCRIPT_KEY% “\\servername\Credit\abc.war”

      Result: command execution failed with below errorerror1.jpg

        1 2 Previous Next