212
You can use the
snmp-agent target-host
command to enable the device to send the notifications as
informs or traps to a host.
If no optional parameters are specified, this command or its
undo
form enables or disables all SNMP
notifications supported by the device.
Examples
# Enable the SNMP agent to send SNMP authentication failure traps to 10.1.1.1 in the community
public
.
<Sysname> system-view
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname
public
[Sysname] snmp-agent trap enable standard authentication
Related commands
snmp-agent
target-host
snmp-agent trap if-mib link extended
Use
snmp-agent trap if-mib link extended
to configure the SNMP agent to send extended
linkUp/linkDown notifications.
Use
undo snmp-agent trap if-mib link extended
to restore the default.
Syntax
snmp-agent
trap
if-mib
link
extended
undo
snmp-agent
trap
if-mib
link
extended
Default
The SNMP agent sends standard linkUp/linkDown notifications.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Extended linkUp and linkDown notifications add interface description and interface type to the
standard linkUp/linkDown notifications for fast failure point identification.
When you use this command, make sure the NMS supports the extended linkup and linkDown
notifications.
Examples
# Enable extended linkUp/linkDown notifications.
<Sysname> system-view
[Sysname] snmp-agent trap if-mib link extended