62
Gateway(config-community-
NAME)# no description
Remove the SNMP community
descriptions for
“mycomm”.
Gateway(config-community-
NAME)# no level
Remove the configured access privilege.
This will set this community
’s level to
“access denied”.
Show command
Gateway(config)# show snmp-server
Show or verify whether SNMP is enabled
or disabled.
Gateway(config)# show snmp-server
community
Show or verify each SNMP server
account
’s information.
Gateway(config)# show snmp-server
community [community]
Show the specified SNMP server account
’s
settings.
Gateway(config-community-NAME)# show
Show the selected community
’s settings.
Exit command
Gateway(config-community-NAME)# exit
Return to Global Configuration mode.
Snmp-server example
Gateway(config)# snmp-server community
mycomm
Create a new community
“mycomm” and
edit the details of this community account.
Gateway(config-community-mycomm)#
active
Activate the SNMP community
“mycomm”.
Gateway(config-community-mycomm)#
description rddeptcomm
Add a description for
“mycomm”
community.
Gateway(config-community-mycomm)#
level admin
Set
“mycomm” community level to admin
(full access privilege).
2. Set up a SNMP trap destination.
Command
Parameter
Description
Gateway(config)# snmp-
server trap-destination [1-2]
[1-2]
Create a trap destination account.
Gateway(config-trap-
ACCOUNT)# active
Enable this SNMP trap destination
account.
Gateway(config-trap-
ACCOUNT)# community
[community]
[community] Enter the community name of network
management system.
Gateway(config-trap-
ACCOUNT)# destination
[A.B.C.D]
[A.B.C.D]
Enter the trap destination IP address for
this trap destination account.
No command
Gateway(config)# no snmp-
server trap-destination [1-2]
[1-2]
Delete the specified trap destination
account.
Gateway(config-trap-
ACCOUNT)# no active
Disable this SNMP trap destination
account.
Gateway(config-trap-
ACCOUNT)# no community
Delete the configured community name.
Gateway(config-trap-
ACCOUNT)# no description
Delete the configured trap destination
description.
Show command
Gateway(config)# show
snmp-server trap-destination
Show SNMP trap destination account
information.