21.15 Determining the original trap address from traps sent by a proxy SNMP gateway
Traps sent by a proxy SNMP gateway might not show the original trap address when NNMi is used in the default configuration. An administrator can configure NNMi to determine the original trap address.
Note the following:
NNMi contains the cia.originaladdress custom incident attribute. NNMi determines the meaning of the cia.originaladdress attribute in conjunction with the com.hp.nnm.trapd.useUdpHeaderIpAddress property.
The value of the com.hp.nnm.trapd.useUdpHeaderIpAddress parameter is false by default, so NNMi normally ignores the cia.originaladdress attribute.
Once you have set the com.hp.nnm.trapd.useUdpHeaderIpAddress value to true, the cia.originaladdress attribute will provide the value of the SNMP agent address.
Setting the com.hp.nnm.trapd.useUdpHeaderIpAddress value to true is useful when you want to use the UDP header address as the source in NNMi but you still require access to the actual SNMP address of the managed device.
- Important
When the com.hp.nnm.trapd.useUdpHeaderIpAddress attribute is false (the default setting), the cia.originaladdress and cia.address attributes both contain the same value.
To configure NNMi to determine the original trap address using the value of cia.originaladdress:
Edit the following file:
Windows: %NNM_PROPS%\nms-jboss.properties
Linux: $NNM_PROPS/nms-jboss.properties
Search for the text block containing the following line:
#!com.hp.nnm.trapd.useUdpHeaderIpAddress=false
Uncomment and edit this line to read as follows:
com.hp.nnm.trapd.useUdpHeaderIpAddress=true
Save your changes.
Restart NNMi by running the following commands:
ovstop ovstart
- Important
When making file changes under High Availability (HA), you must make the changes on both nodes in the cluster. In the case of using NNMi in an HA configurations, if the changes require that you stop and restart the NNMi management server, you must put the nodes in the maintenance mode before running the ovstop and ovstart commands. For details, see 19.6.1 Placing NNMi in maintenance mode.
NNMi uses the value of cia.originaladdress to determine the original trap address.
- Organization of this section