211
snmp-agent trap enable
Use
snmp-agent trap enable
to enable SNMP notifications.
Use
undo snmp-agent trap enable
to disable SNMP notifications.
Syntax
snmp-agent
trap
enable
[
configuration
|
protocol
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
] * |
system
]
undo
snmp-agent
trap
enable
[
configuration
|
protocol
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
] * |
system
]
Default
SNMP configuration notifications, standard notifications, and system notifications are enabled.
Whether other SNMP notifications are enabled varies by modules.
Views
System view
Predefined user roles
network-admin
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.