acpextract utility

The acpextract utility extracts the access control policy and access group information in the database and generates files that capture the information in XML format. It uses an input filter XML file to specify the data to extract from the database.


  1. The acpextract utility only requires the input_filename parameter.

  2. To run the utility, login using the non-root WebSphere Commerce user ID.

    AIX|Linux|Solaris:

    The user ID must have the following permissions:

    • Read/write/execute authority to the directories, subdirectories, and files of WC_installdir/xml/policies and WC_installdir/logs.

    • Read/execute authority to the WC_installdir/bin directory and its files.

      If the user does not have the required authority, you need to grant this authority using the chmod command.

    I5/OS: You must login with a profile which has the following permissions:

    • Read/write/execute authority to files under WC_installdir/xml/policies, WC_userdir /instances and WC_userdir /instances/ instance/logs.

    • Read/execute authority to the WC_installdir/bin directory and its files.

      For example, define the profile with USRCLS *SECOFR.

  3. Check for errors in the log files. Note that errors might not appear on the command line.

    1. AIX|Linux|Solaris|Windows:

      Check the acpextract.log and messages.txt files in the following directory:

    2. I5/OS:

    3. Any error files generated in WC_installdir/xml/policies/xml directory.


 

Parameter values

database

(Required) Name of the database from which to extract the policy and access group information.

database_user

(Required) Name of the database user who can connect to the database.

database_user_password

(Required) The associated password for the database user.

input_filename

(Required) The input filter XML file that specifies what data to extract from the database.

ACPoliciesfilter.xml

This file is used to extract all access group and policy data.

ACUserGroupsFilter.xml

This file is used to extract all access group data.

OrganizationPoliciesFilter.xml

This file is used to extract all access group and policy data for a particular organization. Before using this file, you should edit this file to specify the required organization ID. The policy data owned by this organization ID will be extracted.

schema_name

(Optional) The name of target database schema. This name is normally the same as database_user.

 

Example

From the WC_installdir/bin, run:

The following files are created:

ExtractedACPolicies.xml

This file contains data extracted by the Extract command for the given filter criteria.

ExtractedACPolicies.dtd

The DTD for the ExtractedACPolicies.xml file.

AccessControlUserGroups.xml

The file containing the access group definitions.

AccessControlPolicies.xml

The file containing the language-independent access control policy information.

AccessControlPolicies_ locale.xml

The language-dependent access control policies file that contains the display names and descriptions.

 

Related tasks


Extracting policy and access group definitions

 

Related Reference


acpextract utility
acpload utility
acpnlsload utility