SNMP mib parser

我怕爱的太早我们不能终老 提交于 2019-12-24 00:36:02

问题


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.


回答1:


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, MIB document related features are removed from #SNMP Library.



来源:https://stackoverflow.com/questions/12277028/snmp-mib-parser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!