3Com Switch 8800 Configuration Guide
Chapter 47 SNMP Configuration
47-5
Table 47-4
Enable/disable SNMP Agent to send Trap
Operation
Command
Enable the sending of trap(system view)
snmp-agent trap enable
[
standard
[
authentication
] [
coldstart
]
[
linkdown
] [
linkup
] |
bgp
[
backwardtransition
] [
established
] |
vrrp
[
authfailure
|
newmaster
] ]
Disable the sending of trap(system view)
undo snmp-agent trap enable
[
standard
[
authentication
]
[
coldstart
] [
linkdown
] [
linkup
] |
bgp
[
backwardtransition
] [
established
] |
vrrp
[
authfailure
|
newmaster
] ]
Enable the switch ports to send SNMP
trap messages (Ethernet port view or
VLAN interface view)
enable snmp trap updown
Disable the switch port to send SNMP
trap messages (Ethernet port view or
VLAN interface view)
undo enable snmp trap updown
By default, the current port or VLAN interface sends trap messages.
47.3.4 Setting the Destination Address of Trap
You can use the following commands to set or delete the destination address of the
trap.
Perform the following configuration in system view.
Table 47-5
Set the destination address of trap
Operation
Command
Set the destination address of trap
snmp-agent target-host trap address
udp-domain
host
-
addr
[
udp-port
udp
-
port
-
number
]
params
securityname
community
-
string
[
v1
|
v2c
|
v3
[
authentication
|
privacy
] ]
Delete the destination address of
trap
undo snmp-agent target-host host
-
addr
securityname
community
-
string
47.3.5 Setting Lifetime of Trap Message
You can use the following command to set lifetime of Trap message. Trap message that
exists longer than the set lifetime will be dropped.
Perform the following configuration in system view.