简体   繁体   English

简单的自包含SNMP代理示例? (java / c#ideal)

[英]Simple self-contained SNMP Agent example? (java/c# ideal)

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#. 没有一大堆运气找到可用作SNMP代理的.NET的任何SNMP库(可以在OSS项目中使用 - 意味着专有的库已经出来)之后,我现在正在寻找实现一个简单的SNMP代理类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? 任何人都可以提供SNMP代理的任何好例子或参考实现(理想上很好和自包含),我可以用作移植参考吗? Language isnt too important - but the simpler the better. 语言不是太重要 - 但越简单越好。

Thanks! 谢谢!

My open source project #SNMP Suite has a tiny project named "TestAgent". 我的开源项目#SNMP Suite有一个名为“TestAgent”的小项目。 It is a WinForms based small utility to test out very basic SNMP agent functionality. 它是一个基于WinForms的小实用程序,用于测试非常基本的SNMP代理功能。 This is what I use to test out #SNMP MIB Browser. 这就是我用来测试#SNMP MIB浏览器的方法。

It is far from mature. 它还远未成熟。 But if you like, it shows how to use #SNMP library to send and receive SNMP packets. 但如果您愿意,它会显示如何使用#SNMP库来发送和接收SNMP数据包。

If you want to port something from other languages, snmp4j has a test agent too in Java. 如果你想从其他语言移植一些东西,snmp4j在Java中也有一个测试代理。

http://sharpsnmplib.codeplex.com http://sharpsnmplib.codeplex.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM