Mib compiler has internal error when compiling asyncosweb-mib.txt
Description
I was trying to compile a new mib for Cisco IronPort WSA. I found an error in the original file attached here and titled "asyncosweb-mib-original.txt" I repaired it in "asyncosweb-mib.txt" now I get -
Internal error
Please notify the administrator. Take note of any unsaved data, and click here or press ESC to continue.
I can't find any other messages to help.
Acceptance / Success Criteria
None
Attachments
2
Lucidchart Diagrams
Activity
Show:
Jeff Gehlbach October 27, 2021 at 5:54 PM
The MIB definition provided in this report contains an OBJECT-TYPE macro that creates infinite recursion. It would be nice if we could detect and warn about this type of error, but all the MIB-parsing logic is in a library that we don't maintain.
Jeff Gehlbach October 27, 2021 at 5:50 PM
I found the problem, and it's in the MIB that you're using. One object cacheHTTPSvcWaitTime is defined as self-referencing:
I corrected that macro as follows, and the problem went away:
Corrected version of MIB definition uploaded as asyncosweb-mib-norecurse.txt.
Jeff Gehlbach October 27, 2021 at 2:10 PM
I'm able to reproduce this issue on Horizon 28.1.0 if (and only if) I attempt to compile the provided asyncosweb-mib.txt without first compiling the provided IRONPORT-SMI.txt. The "Internal error" modal is definitely not what should happen in this case – I expect instead to get a message in the console such as [ERROR] Dependencies required: [SNMPv2-SMI, SNMPv2-TC, IRONPORT-SMI].
I was trying to compile a new mib for Cisco IronPort WSA. I found an error in the original file attached here and titled "asyncosweb-mib-original.txt" I repaired it in "asyncosweb-mib.txt" now I get -
Internal error
Please notify the administrator.
Take note of any unsaved data, and click here or press ESC to continue.
I can't find any other messages to help.