63
Gateway(config)# show
snmp-server trap-destination
[1-2]
[1-2]
Show the specified SNMP trap destination
account information.
Gateway(config-trap-
ACCOUNT)# show
Show and verify the selected trap
destination account
’s information.
Exit command
Gateway(config-trap-ACCOUNT)# exit
Return to Global Configuration mode.
Trap-destination example
Gateway(config)# snmp-server trap-
destination 1
Create a trap destination account.
Gateway(config-trap-1)# active
Activate this trap destination account.
Gateway(config-trap-1)# community
mycomm
Refer this trap destination account to the
community
“mycomm”.
Gateway(config-trap-1)# description
redepttrapdest
Add a description for this trap destination
account.
Gateway(config-trap-1)# destination
192.168.1.254
Set trap destination IP address to
192.168.1.254.
3. Set up SNMP trap types that will be sent.
Trap-type command
Parameter
Description
Gateway(config)# snmp-
server trap-type [all | auth-
fail | cold-start | port-link |
power-down | warm-start]
[all | auth-fail
| cold-start |
port-link |
power-down |
warm-start]
Specify a trap type that will be sent when a
certain situation occurs.
all:
A trap will be sent when authentication
fails, broadcast packets exceed the
threshold value, the device cold /warm
starts, port link is up or down and power is
down.
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.
port-link:
A trap will be sent when the link
is up or down.
power-down:
A trap will be sent when the
power is off.
warm-start:
A trap will be sent when the
device restarts.
No command
Gateway(config)# no
snmp-server trap-type [all |
auth-fail | cold-start | port-
link | power-down | warm-
start]
[all | auth-fail
| cold-start |
port-link |
power-down |
warm-start]
Specify a trap type that will not be sent
when a certain situation occurs.