2-526
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set snmp access
write writeview is NULL OID.
notify notifyview is NULL OID.
context contextname is a NULL string.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you use special characters for groupname, readview, writeview, and notifyview (nonprintable
delimiters for these parameters), you must use a hexadecimal keyword, which is one or two hexadecimal
digits separated by a colon (:); for example, 00:ab:34.
readview is assum ed to be every object belongi ng to the Internet (1 .3.6.1) O ID spac e; you can use the
read option to override this state.
For writeview, you must also configure write access.
For notifyview, if a view is specified, any notifications in that view are sent to all users associated with
the group. (An SNMP server host configuration must exist for the user.)
For contextname, the string is treated as either a full context name or the prefix of a context name,
depending on whether you enter the exact or prefix keyword. If you enter the prefix keyword, this allows
you to enter a simple form of wildcarding. For example, if you enter a contextname of vlan, vlan-1 and
vlan-100 will be selected.
If you do not enter a context name, a NULL context string is used.
Examples This example shows how to set the SNMP access rights for a group:
Console> (enable) set snmp access cisco-group security-model v3 authentication
SNMP access group was set to cisco-group version v3 level authentication, readview
internet, nonvolatile.
Console> (enable)
Related Commands clear snmp access
show snmp access
show snmp context