HP Operations Manager

ovtrap2opc


The ovtrap2opc utility is a command line support tool, used for converting an HP NNM trapd.conf file into an HPOM for Windows SNMP Interceptor policy. The tool is part of the HPOM management server.

The ovtrap2opc command line tool supports several parameters with arguments, as shown:

ovtrap2opc -trap <trapd_conf_file>
				-pol <policy_name>
				[-out <policy_files_folder>]
				[-msgtype]
				[-c ASCII|-c UTF8|-c ISO81|-c ISO82|-c ISO85|-c ROMAN8|
				 -c SJIS|-c EUCJP|-c GB2312|-c BIG5|-c EUCTW|-c EUCKR]

Options

In case the code set of the configuration file is other then ASCII, the –c parameter is required. This parameter specifies the code set of the input trap configuration file.

Using the ovtrap2opc tool, you can create an SNMP Interceptor policy based on the HP NNM trap file trapd.conf. The SNMP interceptor policy is created in binary and text versions (.data and .header files). Policy files are created and written to the current directory if the ovtrap2opc tool parameter "-out" is not specified.

To upload a policy

You can automatically upload a newly-created policy to HPOM. When the SNMP policy is created, you are asked if you want to upload the newly-created SNMP policy into HPOM. If you answer yes, the policy is uploaded.

The created policy (either binary or text version) can also be manually uploaded with the ovpmutil utility.

The binary policy version can be uploaded with this command:

ovpmutil.exe reg pol "<policy_name >"

The text policy version can be uploaded with this command:

ovpmutil pcv /c "<policy_name>" (convert text to binary policy)

ovpmutil reg pol "<policy_name> " (upload newly-created policy)

Examples

Generate the SNMP Interceptor policy on the English system (English HP NNM):

ovtrap2opc -trap "C:\Program Files\HP\HP BTO Software\conf\C\trapd.conf" -pol "TestSNMPPolicy"

Generate the SNMP Interceptor policy on the Japanese system (Japanese HP NNM)

ovtrap2opc -trap "C:\Program Files\HP\HP BTO Software\NNM\conf\Japanese_Japan.932/trapd.conf" -pol "TestSNMPPol2" -c SJIS