DGS-6604 m snmp-server enable traps
CLI Reference Guide
845
snmp-server enable traps
To enable all Simple Network Management Protocol (SNMP) notification types
that are available on the switch, use the snmp-server enable traps command.
To disable all available SNMP notifications, use the no form of this command.
snmp-server enable traps
no snmp-server enable traps
Syntax None
Default Sending SNMP traps is disabled
Command Mode Global configuration
Usage Guideline SNMP notifications can be sent as trap requests. This command enables trap
requests for the specified notification types. To specify whether the notifications
should be sent as traps, use the snmp-server host traps command.
To configure the router to send these SNMP notifications, enter at least one
snmp-server enable traps command. When entering the command with no
keywords, all notification types are enabled. When entering the command with a
keyword, only the notification type related to that keyword is enabled - see
“snmp-server enable traps snmp” on page 846. To enable multiple types of
notifications, issue a separate snmp-server enable traps command for each
notification type and notification option.
The snmp-server enable traps command is used in conjunction with the snmp-
server host command. Use the snmp-server host command to specify which
host or hosts receive SNMP notifications. To send notifications, configure at least
one snmp-server host command.
Example This example shows how to enable the SNMP traps.
Switch(config)# snmp-server enable traps
Switch(config)#