Command Reference Guide
3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 7 SNMP Configuration Commands
3Com Corporation
7-18
Description
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.
By default, trap sending is enabled on all modules.
The snmp-agent trap enable command without any parameters specified allows the
device to send all types of SNMP traps from all the modules.
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 trap-type argument specifies the module where traps are sent. It can be bgp,
configuration, flash, ldp, lsp, ospf, standard, system, voice, and vrrp.
The standard traps include authentication, coldstart, linkdown, linkup, and
warmstart.
Related command: snmp-agent target-host, snmp-agent trap-source, snmp-agent
trap-timeout.
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
7.1.19 snmp-agent trap life
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
View
System view










