Previous Topic: XCart Management

Next Topic: Add an Application to an XCart File

Export a Subset of Policy Store Data Using XCart

To export a subset of policy store data, you need the identifiers of the objects (XIDs) that you want to export. You can use the XCart feature of XPSExplorer to locate objects and save them in an XCart file for later use when you export. For example, an administrator can set up an XCart file for members of operations to use as needed. To use XPSExplorer, you must be an administrator with XPSExplorer rights.

In this use case, you save the following four accounting applications in a file for later use:

Export a subset of policy store data using XCart

  1. Open a command prompt on the machine hosting the Policy Server.
  2. Enter the following command:
    XPSExplorer
    

    The Main Menu opens and lists vendors, products, and classes.

    Note: Only objects in top-level classes can be exported. Top-level classes are marked with asterisks.

  3. Enter X for XCart Management.

    The XCart Menu opens.

  4. Create a text file.

    Example: C:\xcart\accounting.txt

    Note: This is where you want the contents of the XCart to be saved.

  5. Enter L for Load cart from file.
  6. Enter the path and name of the text file you created.

    The specified file name is remembered as the XCart file.

    Example: C:\xcart\accounting.txt

    Note: The file must exist. If not, L has no effect.

  7. Enter Q to return to the Main Menu.
  8. Enter the number corresponding to the class that you want to export.

    The Class Menu opens.

    Example: If the number 15 corresponds to Accounting, enter 15.

  9. Enter S to view the objects in the class.

    The Search Menu opens and the objects in the class are listed.

    Example Search Results:

    1-CA.SM::Accounting@0e-08c6cadb-e30b-4e06-9e2e-b3d7a866fab8

    (I) Name : "Accounts Payable"

    (C) Desc : "accounts payable"

    2-CA.SM::Accounting@0e-3b0f4ccf-71f3-4968-b095-2b5a830c3244

    (I) Name : "Accounts Receivable"

    (C) Desc : "accounts receivable"

    3-CA.SM::Accounting@03-1c7ac22e-6646-4c61-8f2f-6261a0ef3a92

    (I) Name : "General Ledger"

    (C) Desc : "general ledger"

    4-CA.SM::Accounting@10-8d78bb81-ae15-11d1-9cdd-006008aac24b

    (I) Name : "Payroll"

    (C) Desc : "payroll"

    5-CA.SM::Accounting@@12-88f119a0-3fd1-46d0-b8ac-c1e83f00f97d

    (I) Name : "Job Costing"

    (C) Desc : "job costing"

  10. For Accounting applications one through four:
    1. Enter the number corresponding to the application.
    2. Enter X for Add to XCart.
    3. Enter Q to exit the XCart Menu and return to the Search Menu.

      Note: An asterisk before an application indicates that it is in the XCart.

  11. Enter Q twice to exit the Search and Class Menus and return to the Main Menu.
  12. Enter X for XCart Management.
  13. Enter S to Save the cart to the XCart file: C:\xcart\accounting.txt.
  14. Enter Q twice to exit the XCart and Main Menus and return to the command prompt.
  15. Enter the following command at the command prompt:
    XPSExport output_file -xf xcart_file
    

    Example:

    XPSExport accounting.xml C:\xcart\accounting.txt
    

    The policy store data for the accounting applications saved in the XCart file is exported to accounting.xml.


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