2. Set up a SNMP trap destination.
Switch(config)# snmp-server
trap-destination [1-10]
Create a trap destination account.
Switch(config-trap-
ACCOUNT)# active
Enable this SNMP trap destination
account.
Switch(config-trap-
ACCOUNT)# community
[community]
Enter the community name of network
management system.
Switch(config-trap-
ACCOUNT)# destination
[A.B.C.D]
Enter the trap destination IP address for
this trap destination account.
Switch(config)# no snmp-
server trap-dest [1-10]
Delete the specified trap destination
account.
Switch(config-trap-
ACCOUNT)# no active
Disable this SNMP trap destination
account.
Switch(config-trap-
ACCOUNT)# no community
Delete the configured community name.
Switch(config-trap-
ACCOUNT)# no description
Delete the configured trap destination
description.
Switch(config)# show snmp-
server trap-destination
Show SNMP trap destination account
information.
Switch(config)# show snmp-
server trap-destination [1-10]
Show the specified SNMP trap destination
account information.
Switch(config-trap-
ACCOUNT)# show
Show and verify the selected trap
destination account‟s information.
Switch(config-trap-ACCOUNT)# exit
Return to Global Configuration mode.
Switch(config)# snmp-server trap-
destination 1
Create a trap destination account.
Switch(config-trap-1)# active
Activate this trap destination account.
Switch(config-trap-1)# community mycomm
Refer this trap destination account to the
community “mycomm”.
Switch(config-trap-1)# description
redepttrapdest
Add a description for this trap destination
account.
Switch(config-trap-1)# destination
192.168.1.254
Set trap destination IP address to
192.168.1.254.