Command Manual (For Soliton) – SNMP-RMON
H3C S3100 Series Ethernet Switches
Chapter 1 SNMP Configuration Commands
1-21
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.
<Sysname> system-view