126
undo snmp-agent
trap
enable ospf
[
authentication-failure
|
bad-packet
|
config-error
|
grhelper-status-change
|
grrestarter-status-change
|
if-state-change
|
lsa-maxage
|
lsa-originate
|
lsdb-approaching-overflow
|
lsdb-overflow
|
neighbor-state-change
|
nssatranslator-status-change
|
retransmit
|
virt-authentication-failure
|
virt-bad-packet
|
virt-config-error
|
virt-retransmit
|
virtgrhelper-status-change
|
virtif-state-change
|
virtneighbor-state-change
] *
Default
OSPF trap sending is enabled.
Views
System view
Predefined user roles
network-admin
Parameters
authentication-failure
: Specifies traps about authentication failures on an interface.
bad-packet
: Specifies traps about error messages received on an interface.
config-error
: Specifies traps about error configuration of an interface.
grhelper-status-change
: Specifies traps about GR Helper state change.
grrestarter-status-change
: Specifies traps about GR Restarter state change.
if-state-change
: Specifies traps about interface state change.
lsa-maxage
: Specifies LSA max age traps.
lsa-originate
: Specifies traps about locally generated LSAs.
lsdb-approaching-overflow
: Specifies traps about approaching LSDB overflows.
lsdb-overflow
: Specifies LSDB overflow traps.
neighbor-state-change
: Specifies traps about neighbor state change.
nssatranslator-status-change
: Specifies traps about NSSA translator state change.
retransmit
: Specifies traps about packets that are received and forwarded on an interface.
virt-authentication-failure
: Specifies traps about authentication failures on a virtual interface.
virt-bad-packet
: Specifies traps about error messages received on a virtual interface.
virt-config-error
: Specifies traps about error configuration of a virtual interface.
virt-retransmit
: Specifies traps about packets that are received and forwarded on a virtual interface.
virtgrhelper-status-change
: Specifies traps about neighbor GR Helper state changes of a virtual
interface.
virtif-state-change
: Specifies traps about virtual interface state change.
virtneighbor-state-change
: Specifies traps about the neighbor state change of a virtual interface.
Examples
# Enable OSPF to send SNMP traps about authentication failures on an interface.
<Sysname> system-view
[Sysname] snmp-agent trap enable ospf authentication-failure