47-13
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 47 Configuring SNMP
SNMPv1 and SNMPv2c Enhancements in Software Release 7.5(1)
Setting Multiple SNMP Community Strings
You can set multiple SNMP community strings using the
community-ext
keyword. The community
strings that are defined using the
community-ext
keyword cannot be duplicates of the existing
community strings. When you add a new community string using the
community-ext
keyword, the
appropriate entries are created in the vacmAccessTable (if a view is specified), snmpCommunityTable,
and the vacmSecurityToGroup table.
To set multiple SNMP community strings from the CLI, perform this task in privileged mode:
This example shows how to set an additional SNMP community string:
Console> (enable)
set snmp community-ext public1 read-only
Community string public1 is created with access type as read-only
Console> (enable)
This example shows how to restrict the community string to an access number:
Console> (enable)
set snmp community-ext private1 read-write access 2
Community string private1 is created with access type as read-write access number 2
Console> (enable)
This example shows how to change the access number to the community string:
Console> (enable)
set snmp community-ext private1 read-write access 3
Community string private1 is updated with access type as read-write access
number 3
Console> (enable)
This example shows how to display the SNMP configuration:
Console> (enable)
show snmp
SNMP:Enabled
RMON:Disabled
Extended RMON Netflow Enabled :None.
Memory usage limit for new RMON entries:85 percent
Traps Enabled:None
Port Traps Enabled:None
Community-Access Community-String
---------------- --------------------
read-only public
read-write private
read-write-all secret
Task
Command
Step 1
Set multiple SNMP community strings.
set snmp community-ext
community_string
{
read-only
|
read-write
|
read-write-all
}
[
view
view_oid
] [
access
access_number
]
Step 2
Verify the SNMP configuration.
show snmp