2-531
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set snmp community
set snmp communityTo set SNMP communities and associated access types, use the set snmp community command.
set snmp community {read-only | read-write | read-wr ite-all} [community_string]
set snmp community index [-hex] index-name name community_string security [-hex]
security-name [context [-hex] context-name] [volatile | nonvolatile]
[transporttag [-hex] tag-value]
Syntax Description
Defaults The default is the following communities and access types are defined:
•public—read-only
•private—read-write
•secret—read-write-all
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
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.
community_string (Optional) Name of the SNMP community.
index Sets the SNMP community index
-hex (Optional) Specifies the SNMP community index in hexadecimal format.
index-name SNMP community index name.
name Sets the SNMP community name.
security Sets the SNMP community security name.
security-name SNMP community security name.
context (Optional) Sets the SNMP context name.
context-name (Optional) SNMP community context name.
volatile (Optional) Specifies that the storage type is defined as temporary memory
and the content is deleted if the device is turned off.
nonvolatile (Optional) Specifies that the storage type is defined as persistent memory
and the content remains after the device is turned off and on again.
transporttag (Optional) Specifies SNMP transport endpoints.
tag-value (Optional) Transport tag value.