tags:

views:

1612

answers:

3

How to read a MIB file(.Mib file) using c#.net

A: 

You can write your own ASN.1 parser, or use an off-the-shelf component. I use NetToolWorks, and am happy with it.

If you do want to roll your own, here's some sample code to get you started.

Jon B
A: 

Is there a C# interface to NetSNMP? http://www.net-snmp.org

David Poole
No. There is no such interface.
Lex Li
A: 

Based on what you need, you have multiple choices.

ASN.1 parsers can be used to parse details. But if you just need to know the OID for objects, #SNMP Suite already has a basic MIB parser/compiler available via both its library (SharpSnmpLib.Mib namespace) and its GUI tool (MIB Compiler and Browser).

http://sharpsnmplib.codeplex.com

As far as I know, Net-SNMP only has a MIB to C tool.

Lex Li