Configuring Trap Managers via SNMP

The snmpTargetMIB interface is available for configuring trap managers.

To add an SNMPv2 trap destination:
Add a row to the snmpTargetAddrTable with these values: Name=trapN, TagList=AC_TRAP, Params=v2cparams, where N is an unused number between 0 and 4

All changes to the trap destination configuration take effect immediately.

To add an SNMPv3 trap destination:
1. Add a row to the snmpTargetAddrTable with these values: Name=trapN, TagList=AC_TRAP, Params=usm<user>, where N is an unused number between 0 and 4, and <user> is the name of the SNMPv3 that this user is associated with.
2. If a row does not already exist for this combination of user and SecurityLevel, add a row to the snmpTargetParamsTable with these 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).

All changes to the trap destination configuration take effect immediately.

To delete a trap destination:
Remove the appropriate row from the snmpTargetAddrTable.
If this is the last trap destination associated with this user and security level, you could also delete the appropriate row from the snmpTargetParamsTable.
To modify a trap destination:

You can change the IP address and or port number for an existing trap destination. The same effect can be achieved by removing a row and adding a new row.

Modify the IP address and/or port number for the appropriate row in the snmpTargetAddrTable.
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’.
Change TagList on the appropriate row in the snmpTargetAddrTable to "AC_TRAP".