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, HPE Operations Manager (OM) management servers, HPE Network Node Manager i (NNMi) management servers, or other Operations Connector servers.
When you download policies on an OM management server, make sure the resulting policy files support the XML-based policy exchange format:
HPE Operations Manager for Windows: use the ovpmutil command-line tool.
HPE Operations Manager for UNIX or Linux: use the opccfgdwn command-line tool.
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.
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
In the Operations Connector user interface, click
in the toolbar. A file selection dialog box opens.
Navigate to the policy files and, for each policy, select both the header (*_header.xml) and the data (*_data) files.
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.
If necessary, edit the imported policies and adapt their contents to the new Operations Connector server.
Optional: Activate the policies.
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>