ImportExport - exportObject_3

ImportExport - exportObject

Description :

This command exports an object into an XML file. It also exports any other additional files that the object requires.

For objectType, specify one of the integers listed in the description of the exportObject command.

This version of exportObject also lets you specify:

  • Whether or not you want to include Component Discovery Jobs.
  • Whether or not you want to include Compliance Jobs.
  • Whether or not you want to include Software Deploy Jobs.
  • Whether or not you want to include depot software objects.
  • Whether or not you want to include BLPackages.
  • Whether you want to keep BLPackage soft links, or convert them to hard links.
  • Whether or not you want to include referenced grammar files.
  • Whether or not you want to exclude component templates.
  • Whether or not you want to exclude NSH scripts.
  • Whether or not you want to exclude depot files.
  • Whether or not you want to exclude NSH Script Jobs.

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

objectType

Integer

Type of the object you want to export.

objectDBKey

DBKey

Handle to the object you want to export.

outputPath

String

Name of the directory in which you want to put the exported object. If this directory exists and has files in it, this command overwrites the files. If this directory does not exist, this command creates it.

excludeDiscoveryJobs

Boolean

True to exclude Component Discovery Jobs from the exported object, false to include them.

excludeComplianceJobs

Boolean

True to exclude Compliance Jobs from the exported object, false to include them.

excludeSoftwareDeployJobs

Boolean

True to exclude Software Deploy Jobs from the exported object, false to include them.

excludeDepotSoftware

Boolean

True to exclude depot software objects from the exported object, false to include them.

excludeBlPackages

Boolean

True to exclude BLPackages from the exported object, false to include them.

convertSoftlinks

Boolean

True to convert BLPackage soft links to hard links, false to preserve the soft links.

includeGrammars

Boolean

True to include referenced grammar files, false to exclude them. Note that setting this argument to false requires grammar file mapping on the importing system.

excludeTemplates

Boolean

True to exclude component templates, false to include them.

excludeNSHScripts

Boolean

True to exclude NSH scripts, false to include them.

excludeDepotFiles

Boolean

True to exclude depot files, false to include them.

excludeNSHScriptJobs

Boolean

True to exclude NSH Script Jobs, false to include them.

Example

The following example exports a component template without its BLPackages.

Script





TEMPLATE_KEY=`blcli Template getDBKeyByGroupAndName /group1 template1` 

blcli ImportExport exportObject 250 $TEMPLATE_KEY /c/tmp/export_files/templateWithoutPkgs false false false false true false false false false false false 



Was this page helpful? Yes No Submitting... Thank you

Comments