H3C S7500 Series Ethernet Switches Operation Manual
Operation Manual – SNMP and RMON
H3C S7500 Series Ethernet Switches Chapter 1
SNMP Configuration
1-6
1.3 Configuring Trap Message
Trap message is the information that the managed device unsolicited sends to the NMS.
Trap message is used to report some urgent and important events (e.g., the managed
device is rebooted).
1.3.1 Configuration Prerequisites
Complete SNMP basic configuration.
1.3.2 Configuration Procedure
Follow these steps to configure trap message:
To do… Use the command… Remarks
Enter system view
system-view
—
Enable the device to
send trap messages
snmp-agent trap enable [ bgp
[ backwardtransition | established ]*
| configuration | flash | ospf
[ process-id ] [ ospf-trap-list ] |
standard [ authentication |
coldstart | linkdown | linkup |
warmstart ]* | system | vrrp
[ authfailure | newmaster ] ]
Enter port
view or
interface view
interface interface-type
interface-number
Enable the
port or
interface to
send trap
messages
enable snmp trap updown
Enable
the port
to send
trap
messag
es
Quit to
system view
quit
Optional
By default, the
port or the
interface is
enabled to
send trap
messages.
Set trap target host
address
snmp-agent target-host trap
address udp-domain { ip-address }
[ udp-port port-number ] params
securityname security-string [ v1 |
v2c | v3 {authentication | privacy } ]
Required
Set the source address
to send trap messages
snmp-agent trap source
interface-type interface-number
Optional
Set the length of the
queue of trap messages
sent to destination host
snmp-agent trap queue-size size
Optional
The default
value is 100.