Use > Policy Management > How to Export Policies

How to Export Policies

Operations Connector enables you to import policies developed on other servers, for example, Operations Manager (OM) management servers,  Network Node Manager i (NNMi) management servers, or other Operations Connector servers. Most policies can simply be copied from the source Operations Connector server and imported in the target server. However, some policies may contain information that does not apply to the target Operations Connector server. Policies may also contain sensitive information such as user names and passwords that must be secured before the distribution.

Policy content that should be modified or removed before distribution

The following table describes policy content that should be modified or removed before the distribution. In addition to the items listed, you may need to adapt other content to prepare your policies for distribution, for example policy conditions.

Policy Type Policy Field Recommended Action
Database policies Connect string

If necessary, enter placeholders for the database server name and port, for example enter:

jdbc:sqlserver://<hostname>:<dbport>;Database=<name>;

Username Enter a placeholder for the database user name, for example: <db user name>.
Password

Remove the password from the policy.

Structured log file policies Log File Path / Name If necessary, change the path or file name.
Scheduled task policies Password Remove the password from the policy.
Username Remove the user name from the policy.
Password in commands, Perl, or VBScript

Remove the password from the policy.

Alternatively, use the ExecuteCommand method password with an encrypted password. For details, see ExecuteCommand: password.

REST Web Service listener policies Path Part of the Effective URL for the REST Web Service Topology policy
XML file policies Log File Path / Name

If necessary, change the path or file name.

You can use Windows environment variables or call a command or script that returns the log file name and path. For details, see Policy Source Page

Topology XML File Path to the source file for the XML Topology policy.

To export policies:

  1. Prepare the policies for distribution:

    1. Create copies of the policies.

    2. Edit the copied policies and modify them as suggested in Policy content that should be modified or removed before distribution topic.

  2. Identify the policy ID of each policy you want to export:

    1. In the toolbar, click to open the Options dialog box.

    2. In the Options dialog box, select Policy ID and click OK.

      The policy list now shows the ID of each policy in an additional column.

  3. On the Operations Connector server, navigate to the policy store:

    • Windows: "%OvDataDir%\datafiles\policymanagement\store"

    • Linux: /var/opt/OV/datafiles/policymanagement/store

  4. Copy the header (<policyID>_header.xml) and the data (<policyID>_data) files to a temporary location on the target Operations Connector server and import them.

Related topics

How to Import Policies