Data360 Analyze

 View Only
  • 1.  Using analyzeCli to migrate custom libraries

    Employee
    Posted 09-15-2021 19:46

    Hi,

    is it possible to export custom libraries from one server to another using analyzeCli? I can import/export a dataflow but not libraries. Does it have to be a .lna file for export?

    Thanks



  • 2.  RE: Using analyzeCli to migrate custom libraries

    Employee
    Posted 09-16-2021 03:41

    Yes you should be able to export a custom library node from one Analyze system using the AnalyzeCli and then import it into a different system.

    For example, if you had a library node called "ReferenceData" in the source system:

    This would be exported using AnalyzeCli using the following command:

    analyzeCli --host analyze1.example.com --port 443 --protocol https export -f "C:/temp/ReferenceData.lna" "//Adrian/Forum/ExportLibraryNodeTest/ReferenceData"

    Note the path to the source library node uses the underlying path name (in this case "//Adrian") rather than the "My Document" folder name displayed in the UI - i.e. similar to the resource path information displayed in the properties panel. The exported library node is explicitly named with the .lna file extension.

     

    This could then be imported into the target Analyze system using the following command:

    analyzeCli --host analyze2.example.com --port 443 --protocol https import -d "//Adrian/ImportLibraryNodeTest" "C:/temp/ReferenceData.lna"

     

    Which results in the following:



  • 3.  RE: Using analyzeCli to migrate custom libraries

    Employee
    Posted 13 days ago

    Update:

    It is now necessary to include either the "--libraryNodes" or "-l" option to export (stand alone) library node(s) that may be in the source path.

    So the previous example of exporting a library node is now:

    analyzeCli --host analyze1.example.com --port 443 --protocol https export -l -f "C:/temp/ReferenceData.lna" "//Adrian/Forum/ExportLibraryNodeTest/ReferenceData"



    ------------------------------
    Adrian Williams
    Precisely Software Inc.
    ------------------------------