2-525
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set snmp access
set snmp accessTo define the access rights of an SNMP group, use the set snmp access command.
set snmp access [-hex] {groupname} {security-model {v1 | v2c}}
[read [-hex] {readview}] [write [-hex] {writeview}] [notify [-hex] {notifyview}]
[volatile | nonvolatile]
set snmp access [-hex] {groupname} {security-model v3 {noauthentication |
authentication | privacy}} [read [-hex] {readview}] [write [-hex] {writeview}]
[notify [-hex] {notifyview}] [context [-hex] contextname [exact | prefix]] [volatile |
nonvolatile]
Syntax Description
Defaults The defaults are as follows:
•storage type is nonvolatile.
•read readvie w is Internet OID space.
-hex (Optional) Displays the groupname, readview, writeview, notifyview, and
contextname in a hexadecimal format.
groupname Name of the SNMP group.
security-model v1 |
v2c Specifies security-model v1 or v2c.
read readview (Optional) Specifies the name of the view that allows you to see the MIB
objects.
write writeview (Optional) Specifies the name of the view that allows you to configure
the contents of the agent.
notify notifyview (Optional) Specifies the name of the view that allows you to send a trap
about MIB objects.
v3 Specifies security model v3.
noauthentication Specifies security model is not set to use authentication protocol.
authentication Specifies the type of authentication protocol.
privacy Specifies the messages sent on behalf of the user are protected from
disclosure.
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.
context contextname (Optional) Specifies the name of the context string and the way to match
the context string; maximum of 32 characters.
exact (Optional) Specifies that an exact match between the contextname and
the value of vacmAccessContextPrefix is required to select thi s entr y.
prefix (Optional) Specifies that only a match between
vacmAccessContextPrefix and the starting portion of contextname is
required to select this entry.