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

 
 

bug #7113: Add automatic error recovery mode

Submitter:  Per Cederberg <cederberg>
Submitted:  Tue 06 Jan 2004 08:29:41 PM UTC
   
 
Severity:  2 - Normal Item Group:  Future Improvement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #17878:  NS-VPN-IPPOOL.mib added by anshulp (3KiB - 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
  • -email is unavailable- added by cederberg (Posted a comment)
  • -email is unavailable- added by anshulp (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-07 anshulp Attached File- Added NS-VPN-IPPOOL.mib, #17878

    Back to the top

    Powered by Savane 3.14-d582.
    Corresponding source code