bugMibble MIB Parser - Bugs: bug #7113, Add automatic error recovery mode

 
 

bug #7113: Add automatic error recovery mode

Submitted by:  Per Cederberg <cederberg>
Submitted on:  Tue 06 Jan 2004 08:29:41 PM UTC  
 
Severity: 2 - NormalItem Group: Future Improvement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sat 11 Apr 2009 08:19:26 PM UTC, comment #6:

Yes Per it seems to be working ,
Thanks a lot.

Cheers
Anshul

anshul <anshulp>
Sat 11 Apr 2009 05:39:15 PM UTC, comment #5:

Please test with version 2.9.2. It includes a fix for this that seems to work with your attached MIB file.

Per Cederberg <cederberg>
Project Administrator
Wed 08 Apr 2009 04:42:23 AM UTC, comment #4:

Per,
Yeah , but other parsers are able to parse it. And I can see the issue being raised dating back to 2004, where you had mentioned that it has already been patched in mibble 2.3. Is there any other alternative, as I have to parse lot of files for all types of devices.

Cheers

Ans

anshul <anshulp>
Tue 07 Apr 2009 07:36:26 PM UTC, comment #3:

Mibble doesn't contain any built-in lookup table for popular MIB files and their symbols. It does however support a relaxed search for "forgotten symbol imports" in the MIB files already imported. This is clearly the common case, as people normally doesn't forget to import the SMI module altogether.

I guess one could further extend support here, but I'm unsure if it would really be worthwhile. Instead, you might as well patch the MIB file and/or inform its author that it contains a serious error.

Per Cederberg <cederberg>
Project Administrator
Tue 07 Apr 2009 06:55:20 AM UTC, comment #2:

I am using mibble 2.8, but there are still problems with the imports of certain symbols(IpAddress and Counter etc.). Have you patched it Per ?

anshul <anshulp>
Wed 26 May 2004 10:34:15 PM UTC, comment #1:

The missing symbol import error recovery mentioned above has been implemented (see bug #8863). There are still no strict/relaxed parsing modes, but recoverable errors are rather always reported with warnings.

Per Cederberg <cederberg>
Project Administrator
Tue 06 Jan 2004 08:29:41 PM UTC, original submission:

In some cases it would be interesting to relax the semantical checks in Mibble. In particular this should be the case for very common mistakes like missing imports or similar.

One way to implement this would be to provide separate "relaxed" and "strict" parsing modes. In relaxed mode some errors would only be reported as warnings, whereas in the strict mode they would be seen as real errors. This separation is only possible in cases where error recovery can be made, however.

Regarding the missing symbols, error recovery would be possible by searching for the missing symbol in the already imported MIB:s. In most cases a missing import comes from one of the MIB:s already imported in the file (for other symbols). So it would be quite a simple extension to try to locate any missing import in one of those MIB:s. It is difficult to attempt reading other MIB files, as Mibble currently has no way of separating between SNMPv1 and SNMPv2 & v3 (see bug #4367).

Per Cederberg <cederberg>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17878:  NS-VPN-IPPOOL.mib added by anshulp (3kB - application/octet-stream - The mib still has the problem. Have you patched it Per. )

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cederberg (Posted a comment)
  • -unavailable- added by anshulp (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 07 Apr 2009 06:53:08 AM UTCanshulpAttached File-=>Added NS-VPN-IPPOOL.mib, #17878

    Back to the top


    Powered by Savane 3.1-cleanup