
85
Description
Use the
snmp-agent ifmib long-ifindex enable
command to switch the format of an NM-specific ifindex
from 16-bit to 32-bit.
Use the
undo snmp-agent ifmib long-ifindex enable
command to restore the default.
By default, an NM-specific ifindex is in 16-bit format.
Some configurations use parameters relating to NM-specific ifindex; therefore, the switch of NM-specific
ifindex causes temporary ineffectiveness of these configurations (if the format of the ifindex is switched
back, the configurations will become effective again). In this case, you need to perform the
configurations again with the new NM-specific ifindexes, and then the related configurations become
effective. For example, in the configuration of RMON alarm group and private alarm group, the alarm
variables are presented in the format of
OID/variable-name.NM-specific-ifindex
; the switching of
NM-specific ifindex format makes the RMON alarm variables ineffective. To monitor the affected nodes
again, you need to re-configure the alarm groups with the new format of NM-specific ifindexes.
Examples
# Switch the format of an NM-specific ifindex from 16-bit to 32-bit.
<Sysname> system-view
[Sysname] snmp-agent ifmib long-ifindex enable
snmp-agent mib-view
Syntax
snmp-agent mib-view
{
excluded
|
included
}
view-name oid-tree
[
mask
mask-value
]
undo snmp-agent mib-view
view-name
View
System view
Default level
3: Manage level
Parameters
excluded
: Denies access to any nodes in the specified MIB subtree.
included
: Permits access to the nodes in the specified MIB subtree.
view-name
: Specifies the view name, a string of 1 to 32 characters.
oid-tree
: Specifies a MIB subtree by its root node’s OID, such as
1.4.5.3.1
, or object name, such as
system
. An OID is made up of a series of integers. It marks the position of a node in the MIB tree and
uniquely identifies a MIB object.
mask
mask-value
: Sets a MIB subtree mask, which is a hexadecimal string. Its length must be an even
number in the range of 2 to 32. For example, you can specify
0a
,
aa
, but not
0aa
. If no subtree mask is
specified, the MIB subtree mask is an all-F hexadecimal string. The MIB subtree and the subtree mask
together identify a set of objects to be included or excluded from the view.
Description
Use the
snmp-agent mib-view
command to create or update a MIB view.
Use the
undo snmp-agent mib-view
command to delete a MIB view.