3Com Switch 8800 Advanced Software V5 Configuration Guide

Trap Configuration 1053
c
CAUTION: To enable an interface to send SNMP Trap packets when its state
changes, you need to enable the Link up/down Trap packet transmission function
on an interface and globally. Use the enable snmp trap updown command to
enable this function on an interface, and use the snmp-agent trap enable [
standard [ linkdown | linkup ] * ] command to enable this function globally.
Configuring Trap message transmission parameters
Follow these steps to configure Trap:
Set to enable the device to
send Trap packets globally
snmp-agent trap enable [
bgp | configuration | flash |
mpls | ospf [ process-id ] [
ospf-trap-list ] | standard [
authentication | coldstart |
linkdown | linkup |
warmstart ]* | system | vrrp
[ authfailure | newmaster ] ]
Optional
All types of Trap packets are
allowed by default.
Enter Ethernet interface view interface interface-type
interface-number
-
Set to enable the device to
send Trap packets of interface
state change
enable snmp trap updown Optional
Transmission of Trap packets
of interface state change is
allowed by default.
To do... Use the command... Remarks
To do... Use the command... Remarks
Enter system view system-view -
Configure target host
attribute for Trap messages
snmp-agent target-host
trap address udp-domain {
ip-address | ipv6 ipv6-address
} [ udp-port port-number ]
params securityname
security-string [ v1 | v2c | v3 [
authentication | privacy ] ]
Required
Configure the source address
for Trap messages
snmp-agent trap source {
interface-type
interface-number }
Optional
Configure the queue size for
sending Trap messages
snmp-agent trap
queue-size size
Optional
100 by default
Configure the life for Trap
messages
snmp-agent trap life
seconds
Optional
120 seconds by default