简单的独立 SNMP 代理示例? (java/c# 理想)

发布于 2024-08-10 02:44:38 字数 306 浏览 4 评论 0原文

运气不佳之后找到任何可以充当 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

被翻牌 2024-08-17 02:44:38

我的开源项目#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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文