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 last change.
standard: Specifies SNMP standard notifications.
•
authentication: Specifies the authentication failure notification sent when an NMS fails to
authenticate to the SNMP agent.
coldstart: Specifies the coldstart notification sent when the device restarts.
•
linkdown: Specifies the linkDown notification sent when the link of a port goes down.
•
linkup: Specifies the linkUp notification sent when the link of a port comes up.
•
warmstart: Specifies the warmstart notification sent when the SNMP agent restarts.
•
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 the 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.
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 life
Use the snmp-agent trap life command to configure the lifetime of notifications in the SNMP notification
queue.
Use the undo snmp-agent trap life command to restore the default notification lifetime.
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
Default
SNMP notification lifetime is 120 seconds.
Views
System view
111