2.6.19 SNMP-Server Command
1. Create a SNMP community and set up detailed configurations for this community.
Switch(config)# snmp-
server
Enable SNMP server function globally.
Switch(config)# snmp-
server community
[community]
Create/modify a SNMP community name.
Up to 20 alphanumeric characters can be
accepted.
Switch(config-community-
NAME)# active
Enable the specified SNMP community
account.
Switch(config-community-
NAME)# description
[Description]
Enter the description for the specified
SNMP community. Up to 35
alphanumerical characters can be
accetpted.
Switch(config-community-
NAME)# level [admin | rw |
ro]
Specify the access privilege level for the
specified SNMP account.
admin: Own the full-access right, including
maintaining user account, system
information, loading factory settings, etc..
rw: Read & Write access privilege. Own
the partial-access right, unable to modify
user account, system information and load
factory settings.
ro: Allow to view only.
Switch(config)# no snmp-
server
Switch(config)# no snmp-
server community
[community]
Delete the specified community.
Switch(config-community-
NAME)# no active
Disable the specified SNMP community
account.
Switch(config-community-
NAME)# no description
Remove the description of SNMP
community.
Switch(config-community-
NAME)# no level
Reset the access privilege level back to
the default. (Read Only)
Switch(config)# show snmp-server
Show SNMP server configuration.
Switch(config)# show snmp-server
community
Show SNMP server community
configuration.
Switch(config)# show snmp-server
community [community]
Show the specified SNMP server
community’s configuration.
Switch(config-community-NAME)# show
Show the selected community’s settings.