Use > Policy Management > How to Import Policies

How to Import Policies

Operations Connector provides policy editors for different policy types (for example, for XML file policies). You can import policies developed and exported on other servers, for example, Operations Manager (OM) management servers,  Network Node Manager i (NNMi) management servers, or other Operations Connector servers.

Policies Exported from OM

When you download policies on an OM management server, make sure the resulting policy files support the XML-based policy exchange format:

  • Operations Manager for Windows: use the ovpmutil command-line tool.

  • Operations Manager for UNIX or Linux: use the opccfgdwn command-line tool.

Policies Exported from NNMi

NNMi provides the nnmopcexport.ovpl command-line tool, which exports an SNMP trap policy for use with Operations Connector. For more information about running this tool and the NNMi integration in general, see the NNMi Deployment Reference.

Policies Exported from Other Operations Connector Servers

You can also import policies developed on other Operations Connector systems, for example, to ensure that the same set of policies is available on multiple Operations Connector systems. This is necessary, for example, when running Operations Connector in a cluster environment.

Operations Connector stores policies in the following folders:

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

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

To import policies by using the OpsCx Policy Management UI:

  1. In the Operations Connector user interface, click Import in the toolbar. A file selection dialog box opens.

  2. Navigate to the policy files and, for each policy, select both the header (*_header.xml) and the data (*_data) files.

  3. Click Open (on Windows) or OK (on Linux) to start the import process.

    If the policies with the same policy ID already exist in Operations Connector, you are asked whether you would like to replace them with the newly imported policies.

    The imported policies appear in the list of policies in the Operations Connector user interface. They are by default deactivated.

  4. If necessary, edit the imported policies and adapt their contents to the new Operations Connector server.

  5. Optional: Activate the policies.

To import policies by using the command-line interface:

You can import policies by using the bsmc_policy.[bat|sh] script. The script is located at:

Windows:

%ovdatadir%installation\HPOprBSMC\bsmc-policy.bat

Linux:

/var/opt/OV/installation/HPOprBSMC/bsmc-policy.sh

Import a policy by using the following command:

bsmc-policy.[bat|sh] -import -header <full path to policy header file> -data <full path to policy data file>

Related topics

How to Export Policies