SNMP Data Collection on ifIndex > 2^31

Ian MacDonald <[email protected]> Mon, 29 Oct 2018 20:41:15 -0400
Newsgroups gmane.network.opennms.general
Message-ID <CAFJzfF9FS=wmtf668KEdxVa8_SfzghWs+1BUZDSOVRokdkg97Q@mail.gmail.com>
Running Horizon 23, I am trying to collect mib2 interface information from
a Huawei DSLAM.

The management and uplink interfaces all collect data as one might expect
and can be selected by interface for collecting data in the GUI.

The CPE access interfaces however have much higher ifIndex numbers (seen in
snmpwalk immediately below) which appear as negative integers as the
ifIndex but correctly show their ifType as 251, with description, etc.
When I try to select them for collection, the GUI responds with a "Cannot
set data collection flag for interface XXX".

At first I thought I might have tripped on this issue, which sounds
similar, but seems to have been resolved in Horizon 18.
https://issues.opennms.org/browse/NMS-8179

IF-MIB excerpt appears below from my snmpwalk.  You can see right away the
ifIndex jumps from 234881024 to 4127203329.   I am not sure why, but the
interface ifIndex values switch to a signed integer equal to
(2^32-ifIndex).  In the highlighted row below, 2^32-4127203329 is
-167763967 which is the first ifIndex row below with a negative ifIndex
being returned.

IF-MIB::ifNumber.0 = INTEGER: 3
IF-MIB::ifIndex.128 = INTEGER: 128
IF-MIB::ifIndex.262 = INTEGER: 262
IF-MIB::ifIndex.263 = INTEGER: 263
IF-MIB::ifIndex.234881024 = INTEGER: 234881024
*IF-MIB::ifIndex.4127203329 = INTEGER: -167763967*
IF-MIB::ifIndex.4127203330 = INTEGER: -167763966
IF-MIB::ifIndex.4127203393 = INTEGER: -167763903
IF-MIB::ifIndex.4127203394 = INTEGER: -167763902
IF-MIB::ifIndex.4127203457 = INTEGER: -167763839
IF-MIB::ifIndex.4127203458 = INTEGER: -167763838
IF-MIB::ifIndex.4127203521 = INTEGER: -167763775
...

I turned on debug logging in collectd, and it does not have any errors
corresponding to my actions to try and select the interface.

It also seems to be traversing the interfaces I am interested in, and
seeing the values for interfaces statistics (shown below).

Is there a special trick to getting opennms to collect data from these
interfaces?

Any help appreciated,
cheers,
Ian


2018-10-29 20:06:54,946 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.a.AttributeGroup: Visiting Group
AttrGroupType[name=mib2-interface-errors, ifType=all] for *4160757760*@7
2018-10-29 20:06:54,946 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.s.AbstractCollectionAttribute: Visiting attribute
node[7].interfaceSnmp[VDSL_0_1_0-000000000000].*ifInErrors
[.1.3.6.1.2.1.2.2.1.14] = 0*
2018-10-29 20:06:54,946 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.s.AbstractCollectionAttribute: Visiting attribute
node[7].interfaceSnmp[VDSL_0_1_0-000000000000].ifOutErrors
[.1.3.6.1.2.1.2.2.1.20] = 0
2018-10-29 20:06:54,947 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.a.AttributeGroup: Visiting Group
AttrGroupType[name=mib2-interface-errors, ifType=all] for 4160757824@7
2018-10-29 20:06:54,947 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.s.AbstractCollectionAttribute: Visiting attribute
node[7].interfaceSnmp[VDSL_0_1_1-000000000000].ifInErrors
[.1.3.6.1.2.1.2.2.1.14] = 0
2018-10-29 20:06:54,947 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.s.AbstractCollectionAttribute: Visiting attribute
node[7].interfaceSnmp[VDSL_0_1_1-000000000000].ifOutErrors
[.1.3.6.1.2.1.2.2.1.20] = 0
2018-10-29 20:06:54,948 DEBUG [Collectd-Thread-20-of-50]
o.o.n.c.a.AttributeGroup: Visiting Group
AttrGroupType[name=mib2-interface-errors, ifType=all] for 4160757888@7

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss