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 the 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
172.168.1.254
Set trap destination IP address to
192.168.1.254.
3. Set up SNMP trap types that will be sent.
Switch(config)# snmp-
server trap-type [all |auth-
fail | cold-start | port-link |
power-down | warm-start]
[all |auth-fail |
cold-start |
catv | port-
link | power-
down | warm-
start]
Specify the trap type that will be sent when
a certain situation occurs.
all: A trap will be sent when authentication
fails, the device cold /warm starts, port link
is up or down, power is down, or the CATV
optical-fiber source is less than -9 dBm.
auth-fail: A trap will be sent when any
unauthorized user attempts to login.
cold-start: A trap will be sent when the
device boots up.
catv: A trap will be sent when the optical-
fiber source is less than -9 dBm.
port-link: A trap will be sent when the link
is up or down.
power-down: A trap will be sent when the
device‟s power is down.
warm-start: A trap will be sent when the
device restarts.
Switch(config)# no snmp-server trap-type
auth-fail
Authentication failure trap will not be sent.
Switch(config)# show snmp-server trap-
type
Show the current enable/disable status of
each type of trap.