1-22
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public
snmp-agent trap enable
Syntax
snmp-agent trap enable
[
configuration
|
flash
|
ospf
[
process-id
] [
ospf-trap-list
] |
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
|
vrrp
[
authfailure
|
newmaster
] ]
undo
snmp-agent trap enable
[
configuration
|
flash
|
ospf
[
process-id
] [
ospf-trap-list
] |
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
|
vrrp
[
authfailure
|
newmaster
] ]
View
System view
Parameters
configuration
: Specifies to send configuration traps.
flash
: Specifies to send Flash traps.
ospf
[
process-id
] [
ospf-trap-list
]: Specifies to send OSPF traps. The
process-id
argument is a process
ID. The
ospf-trap-list
argument indicates a list of traps to be sent.
standard
: Specifies to send SNMP standard notification or traps.
authentication
: Specifies to send SNMP authentication failure traps in cases of authentication failures.
coldstart
: Specifies to send SNMP cold start traps when the device is rebooted.
linkdown
: Specifies to send SNMP linkDown traps when a port becomes down.
linkup
: Specifies to send SNMP linkUp traps when a port becomes up.
warmstart
: Specifies to send SNMP warm start traps when SNMP is newly launched.
system
: Specifies to send SYS-MAN-MIB (proprietary MIB) traps.
vrrp
[
authfailure
|
newmaster
]: Specifies to send VRRP traps.
Description
Use the
snmp-agent trap enable
command to enable a device to send SNMP traps that are of
specified types.
Use the
undo snmp-agent trap enable
command to disable a device from sending SNMP traps that
are of specified types.
By default, a device sends all types of SNMP traps.
The
snmp
-
agent trap enable
command need to be coupled with the
snmp
-
agent target
-
host
command. The
snmp-agent target-host
command specifies the destination hosts for SNMP traps. At
least one destination host is required for SNMP traps.
Examples
# Enable sending of SNMP authentication failure traps, with the destination IP address being 10.1.1.1
and the community name being
public
.
<Sysname> system-view
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...