Re: SNMP Data Collection on ifIndex > 2^31
"Seibold, Michael" <[email protected]> Tue, 30 Oct 2018 09:16:21 +0000
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
It seems that when writing the RFC they didn't expect such high index numbers. Otherwise they should have written more detailed "unsigned 32 bit integer". As they wrote "this works only for non-negative numbers" they obviously limited the ifindex range to 0 - 2^31. So I assume that somewhere in the code 32-bit signed integers are used, which will lead to the observed negative numbers. Using 32-bit unsigned integers should avoid this problem, but might also be seen as a violation of the RFC. It would be interesting if the underlying SNMP4J and other snmp stacks are using unsigned integers or not. As the manufacturer probably uses some free available snmp stack this one obviously is coded with unsigned integers. -Michael _______________________________________________ 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