![Cisco 2948G - Catalyst Switch Configuration Manual Download Page 376](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462376.webp)
24-8
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 24 Configuring SNMP
Configuring SNMPv1 and SNMPv2c from the CLI
SNMPv1 and SNMPv2c Enhancements in Software Release 7.5(1)
The following sections describe enhancements that were added to software release 7.5(1).
Setting Multiple SNMP Community Strings
You can set multiple SNMP community strings using the community-ext keyword. Community strings
that are defined with the community-ext keyword cannot be duplicates of existing community strings.
When you add a new community string using the community-ext keyword, 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