Previous Topic: Overview of the XML-based Data Format

Next Topic: Add Policy Data

Export Policy Data Using XPSExport

The XPSExport tool supports the following tasks for migrating Policy Store data:

You can export a subset of policy data by specifying a root object's identifier in the command line or in a file (using the -xf parameter). Only objects that do not have a parent class can be exported. For example, to export a realm object, you specify the identifier (XID) of the realm's parent domain.

You can also create and edit a custom export file using the "shopping cart", or XCart, capability in XPSExplorer (xspexplorer -xf ). You can set the import mode (ADD, OVERLAY, REPLACE, or DEFAULT) on a per object basis in the XCart file. You can then pass the XCart file to XSPExport using the -xf parameter.

Note: XSPExport does not export keys from the key store. You must use smkeyexport for this purpose.

Syntax

The syntax of the XPSExport is following:

XPSExport output_file [-xo object_XID] [-xo-add object_XID] [-xo-replace object_XID]
[-xo-overlay object_XID] [-xf file_name] [-xa] [-xd] [-xs] [-xc] [-passphrase phrase]
[-?] [-vT] [-vI] [-vW] [-vE] [-vF] [-l log_file] [-e err_file] 

Parameters

Example

XPSExport PolicyData.xml -xo CA.SM::UserDirectory@0e-255e2456-556d-40fb-93cd-f2fed81f656e
-xo-overlay CA.SM::Domain@03-7bdf31f2-44d7-4d7b-a8f5-5de2eaa0b634 -xd -e C:\tmp\ExceptionLog.txt 

Note: In case of granular export, the export type will either be specified explicitly on the command line or will be retrieved from the data dictionary in case it is not specified on the command line. For dump export, the export type attribute for all objects is Replace (whatever the data dictionary value for the object class is set to) because a load import of the policy data is effectively an overwrite of the entire policy data in the policy store.

During the execution of XPSExport, if any error is encountered during the parsing of the command line options, the export tool aborts and logs the errors encountered in the exception file (or stderr). Also, the export process aborts if the export of any object fails. In such a scenario, appropriate errors are logged to the exception file (or stderr) and the XML output file (if it has been created) is deleted.


Copyright © 2010 CA. All rights reserved. Email CA about this topic