Created attachment 503516 [details]
Description of problem:
The regex in the python binding fails to account for colons in tags. So when attempting a Varbind on 'SNMPv2-SMI::enterprises.674.10892.1.300.10.1.11.1' it will be split into a "tag" of "SNMPv2-SMI" and an "iid" of "::enterprises.674.10892.1.300.10.1.11.1" which then fails in a get operation with a core dump.
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 6.1 (Santiago)
The attached patch updates the regex to accommodate colons
My patch has been accepted upstream and applied to all net-snmp releases above 5.4.
git commit c5a8464c42a94c250ee2dfa2a473109a734203d8
Please bring this into RHEL.
(In reply to comment #3)
> My patch has been accepted upstream and applied to all net-snmp releases above
> git commit c5a8464c42a94c250ee2dfa2a473109a734203d8
Well, it was me who accepted it upstream :)
> Please bring this into RHEL.
The bug is MODIFIED, which means it will be in next update unless something really bad happens here.
Sweet deal thanks for that.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The netsnmp python module did not properly parse OID names which included name of MIBs 'like IF-MIB::ifTable'. In this update, regular expression for parsing OID names is fixed and the python module can properly parse names with names of MIBs.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.