bugMibble MIB Parser - Bugs: bug #15078, There is currently no way to...

 
 

bug #15078: There is currently no way to extract the SMI version from a MIB

Submitter:  Per Cederberg <cederberg>
Submitted:  Sun 27 Nov 2005 11:28:48 AM UTC
   
 
Severity:  2 - Normal Priority:  5 - Normal
Item Group:  Future Improvement Status:  Fixed
Privacy:  Public Assigned to:  cederberg
Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 12 Jan 2006 12:06:30 AM UTC, comment #2: 

Mibble 2.6 was release on 2005-12-10 containing this fix.

Per Cederberg <cederberg>
Group administrator
Sun 27 Nov 2005 12:08:47 PM UTC, comment #1: 

A Mib.getSmiVersion() method has been added as of version 2.6.beta3. The implementation is based on which SMI macro constructs are used in the parsed MIB file.

Per Cederberg <cederberg>
Group administrator
Sun 27 Nov 2005 11:28:48 AM UTC, original submission:  

After parsing a MIB file, there is no way to extract the SMI version (1 or 2) from the MIB. The Mibble API should provide such a method, as it can be easily deduced from the MIB while parsing.

The easiest way to detect if a MIB is SMIv1 or SMIv2, might be to check which macros the MIB uses. Or if MAX-ACCESS is used in the OBJECT-TYPE macro (instead of ACCESS as in SMIv1). Another way, but less syntactically correct, might be to check which other MIB:s are imported. That method doesn't work for the "root" MIB:s themselves, though.

Per Cederberg <cederberg>
Group administrator

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-12 cederberg Open/ClosedOpen Closed
2005-11-27 cederberg StatusNone Fixed

Back to the top

Powered by Savane 3.16.
Corresponding source code