1-18
view-name
: View name.
oid-tree
: OID MIB subtree of a MIB subtree. It can be the ID of a node in OID MIB subtree (such as
1.4.5.3.1) or an OID (such as “system”).
mask
mask-value:
Mask of a MIB subtree, an even number of hexadecimal characters, in the range 2 to
32. An odd number of characters are invalid.
Description
Use
snmp-agent mib-view
command to create or update the information about a MIB view to limit the
MIB objects the NMS can access.
Use the
undo snmp-agent mib-view
command to cancel the current setting.
Management Information Base (MIB) is a collection of all the managed objects. MIB view is a sub-set of
MIB. You can bind a community name/username with a MIB view when configuring an agent, thus to
control the MIB objects that NMS can access. You can configure the objects in the MIB view as
excluded or included; excluded indicates that all the nodes on the subtree are excluded in the current
MIB view, and included indicates that the current MIB includes all the nodes on the subtree.
By default, the view name is ViewDefault, which includes all the MIB objects under the ISO MIB subtree
except snmpUsmMIB, snmpVacmMIB and snmpModules.18.
If you specify a mask value in hexadecimal number when creating a MIB view, each bit number of the
mask value corresponds with each sub-OID of the MIB subtree OID, from left to right. In a binary mask
value, 1 indicates exact matching, meaning the OID of the node to be accessed must be the same as
the sub-OID at the corresponding position of the MIB subtree OID; 0 indicates fuzzy matching, meaning
the OID of the node to be accessed is not necessarily the same as the sub-OID at the corresponding
position of the MIB subtree OID.
Note the following when defining a MIB view with a mask:
z
If the bit number of a mask value is more than the number of sub-OIDs of the MIB subtree OID, the
bit number remains unchanged.
z
If the bit number of a mask value is less than the number of sub-OIDs of the OID of a MIB subtree,
the bit number is filled by 1(s) in a binary number by default.
z
If no mask value is specified when you create a MIB view, the OID of the node to be accessed must
be the same as the sub-OID at the corresponding position of the MIB subtree OID. The mask value
is displayed as null when the system reads it.
You need to define the MIB view access right of the community name or group in the configuration of an
SNMP community name or group name. For the configurations, refer to the
snmp-agent community
and
snmp-agent group
commands.
Examples
# Create an SNMP MIB view with the name of
rip2
, and MIB subtree of 1.3.6.1.2.1.23 to configure MIB
view for the NMS to display or configure
rip2
.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent mib-view included rip2 1.3.6.1.2.1.23
# Create a read community name with the name of
rip2read
, and a write community name with the
name of
rip2write
. Specify the MIB view as the configured rip2 MIB view, and the NMS using this
community name to access the device can only display or configure
rip2
related configurations.
Summary of Contents for 5500-EI Series
Page 43: ...2 6 ...
Page 76: ...1 17 ...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46 ...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast ...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23 ...
Page 519: ...iii ...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain ...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static ...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2 ...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008 ...
Page 1111: ...ii xmodem get 3 18 ...
Page 1314: ...A 44 Z ...