Configuring Trap Managers (Trap Destination)

Configuring Trap Managers (i.e., trap destinations) includes defining IP address and port. This configuration corresponds to the snmpTargetAddrTable. The agent supports up to five separate trap destinations. For each manager, you need to set the manager IP address and trap-receiving port along with enabling the sending to that manager.

In addition, you can associate a trap destination with a specific SNMPv3 USM user. Traps will be sent to that trap destination using the SNMPv3 format and the authentication and privacy protocol configured for that user.

ini File: two options that can be used separately or together:
Explicit IP address:
SNMPMANAGERTABLEIP_x=<IP address>
SNMPMANAGERISUSED_x=1
SNMPMANAGERTRAPSENDINGENABLE_x=1
SNMPMANAGERTRAPPORT_x=162 ;(optional)
Where x is the entry index from 0 to 4
Manager host name:
SNMPTrapManagerHostName = <’host name on network’>

For example: 'myMananger.corp.MyCompany.com’

The host name is translated into the IP address using DNS resolution and is then defined as the fifth (last) trap manager. Until the address is resolved, some traps are expected to be lost.

This option also requires you to configure the DNS server IP address (in the IP Interfaces table).
This option results in the fifth manager being overrun by the resolved IP address. Online changes to the Manager table will also be overrun.
SNMP: The trap managers are SET using the SNMPTargetMIB MIB onbject.
To add an SNMPv2 trap destination:  Add a row to the snmpTargetAddrTable with these values:
Name=trapN, where N is an unused number between 0 and 4.
TagList=AC_TRAP
Params=v2cparamsm

All changes to the trap destination configuration take effect immediately.

To add an SNMPv3 trap destination:
i. Add a row to the snmpTargetAddrTable with these values: Name=trapN, >, where N is an unused number between 0 and 4, and <user> is the name of the SNMPv3 that this user is associated with:
TagList=AC_TRAP
Params=usm<user>
ii. If a row does not already exist for this combination of user and SecurityLevel, add a row to the snmpTargetParamsTable with this values:
Name=usm<user>
MPModel=3(SNMPv3)
SecurityModel=3 (usm)
SecurityName=<user>
SecurityLevel=M, where M is either 1(noAuthNoPriv), 2(authNoPriv) or 3(authPriv)
To delete a trap destination:
i. Remove the appropriate row from the snmpTargetAddrTable.
ii. If this is the last trap destination associated with this user and security level, you can also delete the appropriate row from the snmpTargetParamsTable.
To modify a trap destination, change the IP address and or port number for the appropriate row in the snmpTargetAddrTable for an existing trap destination. The same effect can be achieved by removing a row and adding a new row.
To disable a trap destination, change TagList on the appropriate row in the snmpTargetAddrTable to the empty string.
To enable a trap destination, change TagList on the appropriate row in the snmpTargetAddrTable to "AC_TRAP".
Web Interface: SNMP Trap Destinations table (Setup menu > Administration tab > SNMP folder > SNMP Trap Destinations). The check box on the left indicates if the row is used. The three columns are used to set IP address, port and enable trap sending. The SNMPv3 Users table configures trap users.
To add a trap user: Click New, and then configure the user. The five columns include name, authentication protocol, privacy protocol, authentication key and privacy key. After configuring the columns, click Apply.
To delete a row: Select the corresponding index field, and then click Delete.
CLI:
(config-system)# snmp trap-destination