5-46
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 5 Configuring the Management Interface and Security
Configuring and Managing the SNMP Interface
Defining a Community String
Options
The following options are available:
•
community-string—
A security string that identifies a community of managers who are permitted
to access the SNMP server
•
acl-number
—(Optional) ID number of the ACL to be assigned to the SNMP interface. It should list
the IP addresses of all SNMP managers permitted to access the SNMP server.
Note
Assigning different ACLs to different community strings is not supported. If you specify an ACL in this
command, it is assigned to the SNMP server globally, not just to the specified community string. For
example, if you configure two community strings and assign a different ACL to each, access to the
SNMP agent for both communities is controlled by both ACLs.
If no ACL is specified, all IP addresses can access the SNMP service. For more information about
ACLs, see
“Configuring Access Control Lists (ACLs)” section on page 5-32
The following keywords are available:
•
ro—
Read only (default accessibility)
•
rw
—Read and write
From the SCE(config)# prompt, type:
Defining a Community String: Example
This example shows how to configure a community string called “mycommunity” with read-only rights.
ACL “1” will be assigned to the SNMP server and all configured community strings, not just
“mycommunity”.
Since read-only is the default, it does not need to be defined explicitly.
SCE(config)#snmp-server community mycommunity 1
Removing a Community String
From the SCE(config)# prompt, type:
Command
Purpose
snmp-server community
community-string
ro|rw [
acl-number
]
Defines a community string.
If you specify ACLs for any communities, all
assigned ACLs in conjunction will control access
for all communities.
Repeat the command as necessary to define all
community strings.
Command
Purpose
no snmp-server community
community-string
Removes a community string.