Defining snmp views – Brocade FastIron Ethernet Switch Administration Guide User Manual
Page 145
Defining SNMP views
SNMP views are named groups of MIB objects that can be associated with user accounts to allow
limited access for viewing and modification of SNMP statistics and system configuration. SNMP views
can also be used with other commands that take SNMP views as an argument. SNMP views reference
MIB objects using object names, numbers, wildcards, or a combination of the three. The numbers
represent the hierarchical location of the object in the MIB tree. You can reference individual objects in
the MIB tree or a subset of objects from the MIB tree.
To configure the number of SNMP views available on the Brocade device, enter the following
command.
device(config)#system-max view 15
Syntax: system-maxview number-of-views
This command specifies the maximum number of SNMPv2 and v3 views that can be configured on a
device. The number of views can be from 10 - 65536. The default is 10 views.
To add an SNMP view, enter one of the following commands.
device(config)#snmp-server view Maynes system included
device(config)#snmp-server view Maynes system.2 excluded
device(config)#snmp-server view Maynes 2.3.*.6 included
device(config)#write mem
NOTE
The snmp-server view command supports the MIB objects as defined in RFC 1445.
Syntax: [no] snmp-serverview name mib_tree included | excluded
The name parameter can be any alphanumeric name you choose to identify the view. The names
cannot contain spaces.
The mib_tree parameter is the name of the MIB object or family. MIB objects and MIB sub-trees can be
identified by a name or by the numbers called Object Identifiers (OIDs) that represent the position of the
object or sub-tree in the MIB hierarchy. You can use a wildcard (*) in the numbers to specify a sub-tree
family.
The included | excluded parameter specifies whether the MIB objects identified by the mib_family
parameter are included in the view or excluded from the view.
NOTE
All MIB objects are automatically excluded from any view unless they are explicitly included; therefore,
when creating views using the snmp-server view command, indicate which portion of the MIB you
want users to access.
For example, you may want to assign the view called "admin" a community string or user group. The
"admin" view will allow access to the Brocade MIBs objects that begin with the 1.3.6.1.4.1.1991 object
identifier. Enter the following command.
device(config)#snmp-server view admin 1.3.6.1.4.1.1991 included
Defining SNMP views
FastIron Ethernet Switch Administration Guide
145
53-1003075-02