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

Submitted by:  Per Cederberg <cederberg>
Submitted on:  Sun 27 Nov 2005 11:28:48 AM UTC  
 
Severity: 2 - NormalItem Group: Future Improvement
Status: FixedPrivacy: Public
Assigned to: Per Cederberg <cederberg>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 12 Jan 2006 12:06:30 AM UTCcederbergOpen/ClosedOpen=>Closed
Sun 27 Nov 2005 12:08:47 PM UTCcederbergStatusNone=>Fixed

Back to the top


Powered by Savane 3.1-cleanup1