2-533
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set snmp community-ext
set snmp community-ext
To set additional community strings, use the set snmp community-ext command.
set snmp community-ext community_string {read-only | read- write | read-write-all}
[view view_oid] [access access_number]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Types Privileged.
Usage Guidelines Adding a new community string using the set snmp community-ext command creates appropr i ate
entries in the vacmAccessTable (if a view is specified), snmpCommunityTable, and
vacmSecurityToGroup tables.
An example of the view_oid variable is 1.3.6.1.2.1.
Examples 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)
community_string Name of the SNMP community.
read-only Assigns read-only access to the specified SNMP community.
read-write Assigns read-write access to the specified SNMP community.
read-write-all Assigns read-write access to the specified SNMP community.
view view_oid (Optional) Restricts the community string to a view. See the “Usage
Guidelines” section for more information.
access access_number (Optional) Restricts the community string to an access number; valid values
are from 1 to 65335.