User Guide
778
Notification Configurations
Step 2
snmp-server traps snmp [
linkup | linkdown | warmstart | coldstart | auth-failure
]
Enable the corresponding SNMP standard traps. The command without any parameter
enables all SNMP standard traps. By default, all SNMP standard traps are enabled.
linkup | linkdown
:
Enable Linkup Trap and Linkdown Trap globally.
Linkup Trap indicates that a port status changes from linkdown to linkup. The trap can be
triggered when you connect a new device to the port, and the trap is enabled both globally
and on the port.
Linkdown Trap indicates that a port status changes from linkup to linkdown. The trap can be
triggered when you disconnect a device from the port, and the trap is enabled both globally
and on the port.
To enable Linkup Trap and Linkdown Trap on a port, run the command
in Interface Configuration Mode of the port. To disable them, run the
corresponding no command.
By default, the traps are enabled both globally and on all ports, which means that the traps
will be triggered when a device is connected to or disconnected from any port of the switch.
If you do not want to receive notification messages about some specific ports, disable the
traps on those ports.
warmstart:
Indicates that the SNMP entity is reinitializing itself with its configurations
unchanged. For a switch running SNMP, the trap can be triggered if you disable and then
enable SNMP without changing any parameters.
coldstart:
Indicates that the SNMP entity is reinitializing itself such that its configurations
may be changed. The trap can be triggered when you reboot the switch.
auth-failure:
Triggered when a received SNMP request fails the authentication.
Step 3
end
Return to Privileged EXEC Mode.
Step 4
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to configure the switch to send linkup traps:
Switch#configure
Switch(config)#snmp-server traps snmp
linkup
Switch(config)#end
Switch#copy running-config startup-config
■
Enabling the SNMP Extended Traps Globally
Step 1
configure
Enter Global Configuration Mode.
Downloaded from