lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

Unable to Get Description from SharpSnmpLibMib #249

Closed lextudio-support closed 3 hours ago

lextudio-support commented 3 hours ago

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?

Original Reported Date: 2013-10-29T17:16:24.91-07:00 Planned For Release: Original CodePlex ID: 7260

lextudio-support commented 3 hours ago

Copied from CodePlex without authors:

In favor of the Pro edition (SharpSnmpPro.Mib), such issues in the open source edition (SharpSnmpLib.Mib) are set as won't fix.

Original Posted Date: 2013-12-03T18:38:32.187-08:00

lextudio-support commented 3 hours ago

Original Closed Date: 2013-12-03T18:38:52.827-08:00