Azriel Berger
Azriel Berger

Reputation: 169

C# SNMP mib parser

How can I convert SNMP-OID to string, by the mib-file?

I use SNMPSharpLib, but I don't know how to parse the objects.

I recieve traps (v2), and they contain "ObjectIDentifier" filed, but I need to translate they to English-text.

Upvotes: 2

Views: 5010

Answers (1)

Lex Li
Lex Li

Reputation: 63264

You should review snmptranslate sample,

https://github.com/lextm/sharpsnmplib/blob/55a03bf575f0b5a518dab10b595dd09b2a1798ae/archived/snmptranslate_cs/Program.cs

It demonstrates what is required to perform the translation.

Update

Due to the introduction of #SNMP Pro edition which contains a feature-rich and high-performance compiler engine, the experimental MIB document-related features are removed from #SNMP Library.

Upvotes: 1

Related Questions