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 Item Group:  Future Improvement
Status:  Fixed Privacy:  Public
Assigned to:  cederberg Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup

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


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


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.


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.13-c373.
Corresponding source code