policyExport
The policyExport
utility extracts policies
from the database.
Purpose
The policy extraction process entails the export of all data associated with a policy, including rules, definitions, extractions, actions and parameters.Syntax
When you invoke the
policyExport
utility,
the following syntax is supported:
----------------------------------------------------------------
1: ./policyExport.sh -policy <name>=<revision>
2: ./policyExport.sh -policy <name>=<revision>,<name>=<revision>
3: ./policyExport.sh -policy <path>
4: ./policyExport.sh -policy <path>,<path>
5: ./policyExport.sh -all
----------------------------------------------------------------
Optional: -filename <exported zip name>
----------------------------------------------------------------
Note:
If -filename is not
supplied to any of the commands, then a zip file of the following
format will be created:
- For a multiple policy export:
- policies_<date/time>.zip
- For a single policy export
- policy_<date/time>.zip
Note: All zip files exported will be created in:
<install_dir>/compliance/db/export/policies
where
<install_dir>/compliance/db/export/policies
where
install_dir
is
your installation directory.Examples
The following examples demonstrate
how this syntax is specified.
./policyExport -policy newPolicy=1
- Where
newPolicy
is the name of the policy and1
is the revision. ./policyExport -realm NSA/v1 -filename nsa_policies
- Where
NSA/v1
is the name of a policy realm that you want to export andnsa_policies
is the name of the exported zip file. ./policyExport -all
- Where
-all
means that all policies in the database will be exported.