Description
Related command:
Example
snmp-agent trap if-mib link extended
Syntax
View
Parameter
Description
Example
Use the
-agent trap enable command to enable the device to send Trap
snmp
messages globally.
Use the
undo snmp-agent trap enable
sending Trap messages.
By default, the device is enabled to send all types of Trap messages.
Note that:
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.
snmp-agent target-host, enable snmp trap updown.
# Enable the device to send SNMP authentication failure packets to 10.1.1.1,
using the community name of "public".
<Sysname> system-view
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 pa
rams securityname public
[Sysname] snmp-agent trap enable standard authentication
snmp-agent trap if-mib link extended
undo snmp-agent trap if-mib link extended
System view
None
Use the
snmp-agent trap if-mib link extended
standard linkUp/linkDown Trap messages defined in RFC. The extended
linkUp/linkDown Trap messages comprise the standard linkUp/linkDown Trap
messages defined in RFC plus interface description and interface type.
Use the
undo snmp-agent trap if-mib link extended
the default.
By default, standard linkUp/linkDown Trap messages defined in RFC are used.
Note that after this command is configured, the device sends extended
linkUp/linkDown Trap messages. If the extended messages are not supported on
NMS, the device may not be able to resolute the messages.
# Extend standard linkUp/linkDown Trap messages defined in RFC.
command to disable the device from
command to extend the
command to restore
2345