Hi,
I tried to parse the MIB file using the
DefaultObjectRegistry Registry = DefaultObjectRegistry.Instance;
and
Registry.CompileFolder(folderName, pattern);
when ever I tried to get the OID's description
var definition = Registry.Tree.Search(numericOids).Definition;
var objectTypeMacro = definition.Entity as ObjectTypeMacro;
var description = objectTypeMacro.Description;
it gives the description for the non scalar OID's like ifIndex and so..
But when I tried to get description for the scalar OID like sysUpTime it doesn't returns anything.
For the above code I am using the latest Nuget Package _Lextm.SharpSnmpLib.8.0.0.0
_
While same thing I tried with the source code which is present on the codeplex I am getting same issue. To resolve the issue in code base I commented the default module loading in the DefaultObjectRegistry and it's working.
__Can any one knows how to get the description of the OID from MIB using the SharpSnmpMibLib?
Attaching the fix for the issue as I mentioned above which is working for my case.
Can any one update me on the same?
Comments: In favor of the Pro edition (SharpSnmpPro.Mib), such issues in the open source edition (SharpSnmpLib.Mib) are set as won't fix.
I tried to parse the MIB file using the
DefaultObjectRegistry Registry = DefaultObjectRegistry.Instance;
and
Registry.CompileFolder(folderName, pattern);
when ever I tried to get the OID's description
var definition = Registry.Tree.Search(numericOids).Definition;
var objectTypeMacro = definition.Entity as ObjectTypeMacro;
var description = objectTypeMacro.Description;
it gives the description for the non scalar OID's like ifIndex and so..
But when I tried to get description for the scalar OID like sysUpTime it doesn't returns anything.
For the above code I am using the latest Nuget Package _Lextm.SharpSnmpLib.8.0.0.0
_
While same thing I tried with the source code which is present on the codeplex I am getting same issue. To resolve the issue in code base I commented the default module loading in the DefaultObjectRegistry and it's working.
__Can any one knows how to get the description of the OID from MIB using the SharpSnmpMibLib?
Attaching the fix for the issue as I mentioned above which is working for my case.
Can any one update me on the same?
Comments: In favor of the Pro edition (SharpSnmpPro.Mib), such issues in the open source edition (SharpSnmpLib.Mib) are set as won't fix.