Command Reference Guide

3Com Router 5000 Family and Router 6000 Family snmp-agent trap enable 353
Command Reference
snmp-agent trap enable
Purpose Use the snmp-agent trap enable command to enable the device to send traps
and set the trap and notification parameters.
Use the undo snmp-agent trap enable command to cancel the current
setting.
Syntax snmp-agent trap enable [ trap-type [ trap-list ] ]
undo snmp-agent trap enable [ trap-type [ trap-list ] ]
Parameters trap-type
Specifies the trap type, or the module where traps are
sent.
trap-list
Parameter list corresponding to the trap type.
Default By default, trap sending is enabled on all modules.
Example Allow the system to send SNMP authentication traps to 10.1.1.1, with the trap
format of SNMPv2c and the community name of public.
[3Com] snmp-agent trap enable standard authentication
[3Com] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public v2c
Allow the system to send all types of BGP traps to 10.1.1.1. Set the trap format to
SNMPv3. Authenticate the traps without encryption and set the use name to super.
[3Com] snmp-agent trap enable bgp
[3Com] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname super v3 authentication
View This command can be used in the following views:
System view
Description Use the snmp-agent trap enable command in conjunction with the
snmp-agent target-host command, which specifies the hosts to which the
traps are sent. To send traps, you must configure at least one snmp-agent
target-host command.
The snmp-agent trap enable command without any parameters specified
allows the device to send all types of SNMP traps from all the modules.
The trap-type argument specifies the module where traps are sent. It can be bgp,
configuration, flash, ldp, lsp, ospf, standard, system, voice, and vrrp.