2-670
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set snmp view
set snmp view
To configure the SNMP MIB view, use the set snmp view command.
set snmp view [-hex]{viewname}{subtree}[mask] [included | excluded] [volatile | nonvolatile]
Syntax Description
Defaults The defaults are as follows:
Storage type is volatile.
Bit mask is NULL.
MIB subtree is included.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you use special characters for viewname (nonprintable delimiters for this parameter), you must use a
hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example,
00:ab:34.
A MIB subtree with a mask defines a view subtree. The MIB subtree can be in object identifier (OID)
format or a text name mapped to a valid OID.
Examples This example shows how to assign a subtree to the view public:
Console> (enable) set snmp view public 1.3.6.1 included
Snmp view name was set to public with subtree 1.3.6.1 included, nonvolatile.
Control> (enable)
-hex (Optional) Displays the viewname value in a hexadecimal format.
viewname Name of a MIB view.
subtree MIB subtree.
mask (Optional) Specifies that the bit mask is used with the subtree. A bit mask can be all
ones, all zeros, or any combination; the maximum length is 3 bytes.
included |
excluded (Optional) Specifies that the MIB subtree is included or excluded.
volatile (Optional) Specifies that the storage type is defined as temporary memory and the
content is deleted if the device is turned o ff.
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.