CentraSite User's Guide : Exporting and Importing Registry Objects : Exporting and Importing Registry Objects through Command Line : Exporting Objects Through the Command Line
Exporting Objects Through the Command Line
Pre-requisites:
To export objects through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
You can export registry objects into an archive in the CentraSite registry.
CentraSite provides a command tool named ExportArchive for this purpose.
*Run the command tool ExportArchive.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>ExportArchive.cmd <CentraSite-URL> <archive-filename> <username> <password> [<guid>...] [-help] [-noinstances] [-deleteafterexport] [-orgnousers] [-orgwithpolicyandlifecycle] [-orgnochildorganization] [-orgwithassets] [-withreferencedassets] [-ignore id] [-ignoretypes] [-savedsearch searchname] [-savedsearchuser user] [-searchfile filename] [-modifiedsince timespec] [-target name] [-displaymainobjects] [-displaycollectorresult] [-full]
The input parameters and options are:
Parameter
Description
CentraSite-URL
(Optional). The URL of the CentraSite registry/repository. For example, http://localhost:53307/CentraSite/CentraSite
archive-filename
The name of the export archive (Zip) file. The archive file can contain an organization with its assets or can contain a set of objects that were exported from one or more organizations.
username
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
password
The password for the CentraSite user identified by the parameter username.
guid
The GUID of the object to be exported, prefixed by uddi. For example, uddi:207ff1cc-25c5-544c-415c-5d98ea91060c. The guid parameter can be specified more than once.
-deleteafterexport
(Optional). All exported objects, except the asset types, taxonomies, and organizations, are deleted after export.
-displaymainobjects
(Optional). Display the main objects to be exported but do NOT export.
-full
(Optional). Display all the objects to be exported with the -display option
-help
(Optional). Display the full description of ExportArchive command (with detailed parameters and options description).
-ignore id
(Optional). Ignore the specified object at export. The -ignore id option can be specified more than once.
-ignoretypes
(Optional). Ignore all implicit asset types of the assets to be exported.
-minimizeaudits
(Optional). Export only the minimal set of audit trail.
-modifiedsince timespec
(Optional). Export only the objects that were created and modified after the specified timestamp.
Syntax: xs:dateTime or xs:duration.
-noinstances
(Optional). Do not export any instance of the exported asset type (represented by a Concept object) or the taxonomy (represented by a Classification Scheme object).
For other objects, the -noinstances option is ignored.
-orgnochildorganization
(Optional). Do not export the child organizations of the exported organization.
-orgnousers
(Optional). Do not export the users of the exported organization.
-orgwithassets
(Optional). Export all the assets of the exported organization.
-orgwithpolicyandlifecycle
(Optional). Export the related policies and lifecycles of the exported organization.
-savedsearch searchname
(Optional). Add the result of the saved search to the objects to export. The -savedsearch searchname option can be specified more than once. A search can be assembled and saved with CentraSite.
-savedsearchuser user
(Optional). Use the specified user for the -savedsearch option instead of the session user.
-searchfile file
(Optional). Add the result of the search, specified in the xml file, to the objects to export. This option may be specified more than once.
-targetname
(Optional). Export a specified target (for example, Mediator).
-withreferencedassets
(Optional). Export the directly referenced (associated) assets of the exported asset.
Example (all in one line):
The command for exporting the asset given by its GUID from CentraSite running on localhost, (ignoring export of the associated asset type), with an administrator account INTERNAL\Admin and password AdminPW would be:
C:\SoftwareAG\CentraSite\utilities>ExportArchive.cmd -ignoretypes http://localhost:53307/CentraSite/CentraSite c:/tmp/export.zip INTERNAL\Admin AdminPW uddi:cf5945c5-1867-11e7-9501-8baf70aded74
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback