net-snmp 示例代码解析 MIB 文件并从中提取陷阱相关信息
我在 Windows 上使用 net-snmp C 库。我想从 MIB 文件中解析与陷阱相关的信息。
我需要一些示例代码来执行此操作。我在 http://www.net-snmp.org/ 上没有找到任何有用的内容
I am using the net-snmp C library on Windows. I want to parse trap-related information from the MIB files.
I need some sample code to do this. I didn't find anything useful on http://www.net-snmp.org/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是使用 net-snmp 库解析 MIB 文件的一些示例代码。
在使用此代码之前,您需要在项目属性中引用或添加 net-snmp 的 Include 和 Lib 目录:
Here is some sample code to parse MIB files using the net-snmp library.
Before you use this code you need to refer or add the Include and Lib directories of net-snmp in your project properties: