
Chapter 9: Simple Network Management Protocol (SNMP) Commands
228 Section II: Advanced Configuration
SNMP-SERVER COMMUNITY
Syntax
snmp-server community STRING view VIEWNAME ro|rw|view
no snmp-server community
Parameters
STRING Specifies the name of the SNMP community. Choose
an alphanumeric value between 1 and 255
characters. This name acts as a password and
permits access to SNMP.
VIEWNAME Indicates the name of a view that was defined with
the SNMP-SERVER VIEW command. Choose from
the following options:
ro Specifies the view is read-only access.
rw Specifies the view is read-write access.
view Specifies the MIB view.
Description
Use the SNMP-SERVER COMMUNITY command to set the name, view,
and access of an SNMP community.
Use the no form of this command to remove a community string.
Command Mode
Configuration Terminal mode
Example
The following commands sets the name of the SNMP community to
“engineering 78” and the view to read-write access:
switch#configure terminal
switch#(config)#snmp-server community “engineering 78”
rw
Kommentare zu diesen Handbüchern