nnmopcexport.ovpl — export NNMi management event and SNMP trap configurations to HP OM policies (SNMP template) file.
nnmopcexport.ovpl
-help
nnmopcexport.ovpl
[-u <username>
-p <password>
] [-jndiHost <hostname>
-jndiPort <port>
] -template <template_name>
-application <application_name>
[-agtmsi_copy | -agtmsi_divert] [-svmsi_copy | -svmsi_divert] [-msgtype] [-author <author code>
] [-oid <snmp oid prefix>
] [-omi_hi] -file <output_file name>
[-force]
nnmopcexport.ovpl
[-u <username>
-p <password>
] [-jndiHost <hostname>
-jndiPort <port>
] -template <template_name>
-application <application_name>
[-agtmsi_copy | -agtmsi_divert] [-svmsi_copy | -svmsi_divert] [-msgtype] [-author <author code>
] [-oid <snmp oid prefix>
] [-omi_hi] -omi_policy
nnmopcexport.ovpl
reads the NNMi management event and SNMP trap configurations
and exports the configurations as an HP OM policies file. This tool provides similar functionality to the HP OM ovtrap2opc
utility that converted legacy NNM trapd.conf files into HP OM policies.
nnmopcexport.ovpl
supports the following parameters:
-u <username
>
Supply the NNMi administrator username to run the script. This script requires
the NNMi administrator username unless you use an nnm.properties
file.
See the nnm.properties.4
reference page for more information.
-p <password
>
Supply the NNMi administrator password to run the script. This script requires
the NNMi administrator password unless you use an nnm.properties
file.
See the nnm.properties.4
reference page for more information.
-agtmsi_copy
Copy matching messages to the OVO Agent Message Stream Interface.
-agtmsi_divert
Divert matching messages to the OVO Agent Message Stream Interface.
-application
<application_name>
Set the policy application name.
-author
<author_code>
Export events matching the author code.
-file
<output_filename>
Save output to file with the specified name.
-force
Overwrite an existing policy file specified by -file <output_file_name>
.
-jndiHost
<hostname>
The server jndi host; default is localhost.
-jndiPort
<port>
The server jndi port; default is 1099.
-msgtype
Set the message type to the name of the condition. The value of the resulting MSGTYPE field will be truncated to 32 characters for OM import compatibility.
-oid
<snmp_oid_prefix>
Export events with snmp trap OIDs matching the provided OID.
-omi_hi
Include HP OMi health indicators for applicable NNMi management events.
-omi_policy
Export in OMi policy format. Using the -omi_policy
option is the
recommended usage. Only generate policies without this option if you need to maintain backwards
compatibility with previous OM integrations. A header file and a data file are created in the form
<UUID>_header.xml and <UUID>_data where UUID is a Universally Unique Identifier.
The -file option is ignored. Using the -omi_policy
option generates
policies using the RelatedCiInfo
OMi custom attribute. If you do not
use the -omi_policy
option, the policy uses the older
OPR_CI_INFO
OM custom attribute.
-svmsi_copy
Copy matching messages to the OVO Server Message Stream Interface.
-svmsi_divert
Divert matching messages to the OVO Server Message Stream Interface.
-template
template name
Set the <template_name>.
-help
Show help.
Export an OM policy file containing all NNMi management events and SNMP trap definitions:
nnmopcexport.ovpl -u user -p pass -template "SNMP Traps" -application "NNMi" -file policies.dat
Export an OMi policy file containing all NNMi management events and SNMP trap definitions and OMi health indicators:
nnmopcexport.ovpl -u user -p pass -template "SNMP Traps" -application "NNMi" -omi_hi -omi_policy