Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 7 SNMP Configuration Commands
3Com Corporation
7-17
The snmp-agent trap enable command enables a device to send traps. To have a
host send notifies, you need to configure the snmp-agent target-host command on it.
In an MPLS L3VPN network environment, a CE, a 3Com NMS for example, on a
private network can use SNMP to manage PEs. To this end, you must specify the VPN
instance to which the SNMP trap host belongs on PEs so these PEs can send back
SNMP messages in response to the SNMP get/set requests from the CE. If a PE has
no direct connection to the CE, you must specify a source interface for traps in addition.
Related command: snmp-agent trap enable, snmp-agent trap source, snmp-agent
trap life.
Example
# Allow the router to send SNMP traps to 10.1.1.1, using the community name of
comaccess.
[3com] snmp-agent trap enable standard
[3com] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname comaccess
# Send SNMP traps to 10.1.1.1, using the community name of public.
[3com] snmp-agent trap enable standard
[3com] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
# Send traps to 202.38.160.6 in private network blue, using the community name of
public.
[3com] snmp-agent target-host trap address udp-domain 202.38.160.6 udp-port
5000 vpn-instance blue params securityname public
7.1.18 snmp-agent trap enable
Syntax
snmp-agent trap enable [ trap-type [ trap-list ] ]
undo snmp-agent trap enable [ trap-type [ trap-list ] ]
View
System view
Parameter
trap-type: Specifies the trap type, or the module where traps are sent.
trap-list: Parameter list corresponding to the trap type.