Switch(config-community-NAME)# exit
Return to the global configuration mode.
Switch(config)# snmp-server community
mycomm
Create a new community “mycomm” and
edit the details of this community account.
Switch(config-community-mycomm)# active
Activate the SNMP community “mycomm”.
Switch(config-community-mycomm)#
description rddeptcomm
Add a description for “mycomm”
community.
Switch(config-community-mycomm)# level
admin
Set the access privilege level of “mycomm”
community to admin (full-access privilege).
2. Set up a SNMP trap destination.
Switch(config)# snmp-server
trap-destination [1-10]
Specify the trap destination you would like
to modify.
Switch(config-trap-ID)#
active
Enable the specified SNMP trap
destination.
Switch(config-trap-ID)#
community [community]
Enter the description for the secified trap
destination.
Switch(config-trap-ID)#
destination [A.B.C.D |
A:B:C:D:E:F:G:H]
[A.B.C.D |
A:B:C:D:E:F
:G:H]
Specify SNMP server IP/IPv6 address for
the secified trap destination.
Switch(config)# no snmp-
server trap-destination [1-10]
Reset the specified trap destination
configuration back to the default.
Switch(config-trap-ID)# no
active
Disable the specified SNMP trap
destination.
Switch(config-trap-ID)# no
community
Delete the description for the specified trap
destination.
Switch(config-trap-ID)# no
destination
Delete SNMP server IP/IPv6 address for
the specified trap destination.
Switch(config)# show snmp-
server trap-destination
Show all of SNMP trap destination
configurations.
Switch(config)# show snmp-
server trap-destination [1-10]
Show the specified SNMP trap destination
configuration.
Switch(config-trap-ID)# show
Show the configuration of the selected trap
destination.
Switch(config-trap-ID)# exit
Return to the global configuration mode.
Examples of Trap-destination
Switch(config)# snmp-server trap-
destination 1
Specify the trap destination 1 to do the
modification.
Switch(config-trap-1)# active
Activate the trap destination ID 1.