194
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname
public v3
Related commands
• snmp-agent { inform | trap } source
• snmp-agent trap enable
• snmp-agent trap life
snmp-agent trap enable
Use snmp-agent trap enable to enable SNMP notifications globally.
Use undo snmp-agent trap enable to disable SNMP notifications globally.
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
Ke
word 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.