简单的独立 SNMP 代理示例? (java/c# 理想)
运气不佳之后找到任何可以充当 SNMP 代理的 .NET SNMP 库(可以在 OSS 项目中使用 - 意味着专有库已经消失),我现在正在考虑在 C# 中实现一个简单的 SNMP 代理类。
任何人都可以提供 SNMP 代理的任何好的示例或参考实现(理想情况下是好的且自包含的),我可以将其用作移植参考吗?语言并不是太重要——但越简单越好。
谢谢!
After not having a whole bunch of luck finding any SNMP libraries for .NET that can act as SNMP agents (that can be used in an OSS project - meaning proprietary libs are out), I am now looking at implementing a simple SNMP agent class in C#.
Can anyone provide any good examples or reference implementations of an SNMP agent (ideally nice & self contained), that I can use as a porting reference? Language isnt too important - but the simpler the better.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的开源项目#SNMP Suite 有一个名为“TestAgent”的小项目。它是一个基于 WinForms 的小实用程序,用于测试非常基本的 SNMP 代理功能。这是我用来测试#SNMP MIB 浏览器的工具。
离成熟还很远。但如果您愿意,它还展示了如何使用#SNMP 库发送和接收 SNMP 数据包。
如果你想从其他语言移植一些东西,snmp4j 也有一个 Java 测试代理。
http://sharpsnmplib.codeplex.com
My open source project #SNMP Suite has a tiny project named "TestAgent". It is a WinForms based small utility to test out very basic SNMP agent functionality. This is what I use to test out #SNMP MIB Browser.
It is far from mature. But if you like, it shows how to use #SNMP library to send and receive SNMP packets.
If you want to port something from other languages, snmp4j has a test agent too in Java.
http://sharpsnmplib.codeplex.com