Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

SystemPackage - exportSystemPackage


SystemPackage - exportSystemPackage

Description :

Deprecated do not use! Instead use exportObject

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

As input, this command requires a handle (DBKey) to the system package you want to export. You can get this DBKey by using the command SystemPackage : listSystemPackageProps .

This command generates a mapping file (mapping.xml) in the target export directory. When you import this system package (using the importSystemPackage command), you use this mapping file to resolve conflicts for system package types.

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

packageKey

String

DB Key of the system package you want to export.

targetLocation

String

Target directory to which you want to export the system package.

Example

This example shows how to export a system package to an XML file.

Script





# System package DB Key

SYSPACK_DB_KEY = "DBKey:SSystemPackageKey:1"



# Destination directory for export.This path is an NSH location where you want to to store the export. This example contains both remote and local export paths.Local exports to a path on your client machine. Remote exports to a server in the servers list.

LOCAL_EXPORT_PATH =/c/export

REMOTE_EXPORT_PATH=//somemachine/tmp/exports/pkg1



RESULT=`blcli SystemPackage exportSystemPackage $SYSPACK_DB_KEY $LOCAL_EXPORT_PATH`

RESULT=`blcli SystemPackage exportSystemPackage $SYSPACK_DB_KEY $REMOTE_EXPORT_PATH`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3