2 configuration tasks, 2 configuration tasks -7 – H3C Technologies H3C S3100 Series Switches User Manual
Page 452

Operation Manual – SNMP and RMON
H3C S3100-52P Ethernet Switch
Chapter 1 SNMP Configuration
1-7
1.3.2 Configuration Tasks
Table 1-4
Configure Trap
Operation
Command
Description
Enter system view
system-view
—
Enable the device to
send Trap packets
snmp
-agent trap enable
[ 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
packets
enable snmp trap updown
Enable
the port
to send
Trap
packets
Quit to
system view
quit
Optional
By default, a
port is enabled
to send all
types of Traps.
Set the destination for
Trap packets
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
for Trap packets
snmp-agent trap source
interface-type
interface-number
Optional
Set the size of the queue
used to hold the Traps to
be sent to the destination
host
snmp-agent trap queue-size
size
Optional
The default is
100.
Set the aging time for
Trap packets
snmp-agent trap life
seconds
Optional
The default
Trap packet
aging time is
120 seconds.