193
Parameters
configuration
: Specifies configuration notifications. If configuration notifications are enabled, the
system checks the running configuration and the startup configuration every 10 minutes for any
change and generates a notification for the most recent change.
protocol
: Specifies a module for enabling SNMP notifications. For more information about this
argument, see the command reference for each module.
standard
: Specifies SNMP standard notifications.
Table 43 Standard SNMP notifications
Keyword
Definition
authentication
Authentication failure notification sent when an NMS fails to authenticate to the
SNMP agent.
coldstart
Notification sent when the device restarts.
linkdown
Notification sent when the link of a port goes down.
linkup
Notification sent when the link of a port comes up.
warmstart
Notification sent when the SNMP agent restarts.
system
: Specifies system notifications sent when the system time is modified, the system reboots,
or the main system software image is not available.
Usage guidelines
The
snmp-agent trap enable
command enables the device to generate notifications, including both
informs and traps, even though the keyword
trap
is used in this command.
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