Quantcast
Channel: C# Based Open Source SNMP Library for .NET and Mono
Viewing all articles
Browse latest Browse all 576

Commented Unassigned: Unable to Get Description from SharpSnmpLibMib [7260]

$
0
0
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.

Viewing all articles
Browse latest Browse all 576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>