SharpSnmp VS SnmpSharpNet [英] SharpSnmp vs SnmpSharpNet

查看:1883
本文介绍了SharpSnmp VS SnmpSharpNet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将踏上一个项目,我需要通过C#创建一个SNMP代理。我从来没有使用SNMP工作,所以我打算用现有的库/ API,如 SharpSnmp SnmpSharpNet

I'm about to embark on a project where I need to create an SNMP Agent via C#. I've never worked with SNMP, so I plan on using an existing library/api such as SharpSnmp or SnmpSharpNet.

我在钓鱼从人谁拥有这两种API的亲身经历,对哪一个更好,为什么意见的响应。 - 或者你的看法是,它们是相同的差值(即你没有preference) - 如果是这样,我感兴趣的是八九不离十的反应,太

I'm fishing for responses from anyone who has personal experience with both of these api's and has an opinion on which one is better and why. - or maybe your opinion is that they are the same difference (i.e. you have no preference) - If so, I'm interested in that sorta response, too.

推荐答案

由于#SNMP的开发商,以及SNMP#NET观察者,我只能提供以下意见,

As the developer of #SNMP, and a watcher on SNMP#NET, I can only provide the following feedback,

#SNMP来自马尔科姆·克罗的SNMP的研究项目。当我试图改善它经过重新设计我从头开始整个API和希望,使之自然,适合于C#/。NET的开发,类似于PowerSNM​​P针对.NET(的 http://www.dart.com/psnet.aspx ),而不是克隆。

#SNMP comes from Malcolm Crowe's research project on SNMP. When I tried to improve it I redesigned the whole API from scratch and wanted to make it natural and suitable for C#/.NET developers, similar to PowerSNMP for .NET (http://www.dart.com/psnet.aspx), but not a clone.

SNMP#NET从其他库,如SNMP4J起源,如果你读它的主页,的http:// snmpsharpnet。 COM /节点/ 1 。因此,它的API类似于他们太多,我个人不喜欢。

SNMP#NET originates from other libraries, such as snmp4j, if you read it homepage, http://snmpsharpnet.com/node/1. So its API looks similar to them too, which I personally dislike.

#SNMP如下测试其1天驱动开发。所有关键部分已经涵盖在其单元测试套件。所以,虽然它已经在七个主要版本被重构重了好几次,它仍然是一个稳定的code基地。

#SNMP follows Test Driven Development from its day one. All critical pieces have been covered in its unit test suite. So although it has been refactored heavily several times during the seven major releases, it is still a stable code base.

从SNMP#NET我看不到任何单元测试套件。我不知道它是如何进行测试。但它已被证明是稳定的太

From SNMP#NET I could not see any unit test suite. I don't know how it was tested. But it has been proven to be stable too.

#SNMP的所有修订可以在codePLEX很容易观察到的,后来就谷歌code,终于在GitHub上。 https://github.com/lextm/sharpsnmplib/commits/master 你可以跟踪几乎每一个变化,因为我经常签到。如果你想检查code群的演化,#SNMP很容易。

All revisions of #SNMP can be easily observed on CodePlex, and later on Google Code, and finally on GitHub. https://github.com/lextm/sharpsnmplib/commits/master You can track almost every changes, because I checked in often. If you want to inspect the evolution of the code base, #SNMP makes it easy.

SNMP#NET只释放与二进制源$ C ​​$ C快照。有没有为它的公共资源库。

SNMP#NET only releases source code snapshots with binaries. There is no public repository for it.

#SNMP提供了一组命令行实用程序(类似一些的Net-SNMP实用程序)来演示如何使用图书馆。它还提供了演示级MIB编译器,浏览器和代理。这些样本作为起点,用户第一次了解了API。

#SNMP provides a set of command line utilities (similar to some of Net-SNMP utilities) to demonstrate how to use the library. It also provides demo level MIB Compiler, Browser, and Agent. Those samples serve as starting point for first time users to learn about the API.

SNMP#NET对如何使用API​​, http://snmpsharpnet.com/node很多不错的小文章/ 6 。不过,这并不有很多大型的样品。尤其是,SNMP#NET没有MIB编译的支持呢,也不是代理开发的支持。

SNMP#NET has many good small articles on how to use the API, http://snmpsharpnet.com/node/6. But it does not have many large scale samples. Especially, SNMP#NET does not have MIB compiling support yet, nor agent development support.

#SNMP已经在Mono几年前的测试,后来又正式支持非Windows操作系统的单声道。我不知道,如果SNMP#NET曾经支持这一点。

#SNMP has been tested on Mono a few years ago, and later officially supports Mono on non-Windows operating systems. I don't know if SNMP#NET ever supports this.

更新从8.0版本开始,#SNMP开始针对移动平台(单声道为Android第一和MonoTouch的更高版本)。在code基地也正在MIT / X11重新授权来避免部署问题。

Updated Starting from 8.0 release, #SNMP starts to target mobile platforms (Mono for Android first, and MonoTouch later). The code base is also re-licensed under MIT/X11 to avoid deployment problems.

值得注意的是,排名SNMP的支持V3一部分是从SNMP#NET移植,的 http://www.lextm.com/2009/05/trident-sign-another-open-source-snmp.html 。这两个项目都遵循LGPL发布,所以我没有尝试重塑车轮。显然,SNMP#NET有更好的隐私法的支持,但这种移植件#SNMP也是容易实现的(我做节目,通过移植MD5,SHA-1,DES和AES支持)。我没有其他的端口,因为对我来说,测试他们没有简单的方法。

Noticeably, part of #SNMP's v3 support is ported from SNMP#NET, http://www.lextm.com/2009/05/trident-sign-another-open-source-snmp.html. Both projects are released under LGPL, so I did not try to reinvent the wheels. Obviously SNMP#NET has better privacy methods support, but porting such pieces to #SNMP is also easy to achieve (I did show that by porting MD5, SHA-1, DES and AES support). I did not port others, because there is no easy way for me to test them out.

更新从8.0版本开始,#SNMP code基地在MIT / X11 + BSD 3条再许可的,的 HTTP://sharpsnmplib.$c$cplex.com/wikipage标题= 600012&安培; referringTitle = KB

Updated Starting from 8.0 release, #SNMP code base is re-licensed under MIT/X11 + BSD 3 Clause, http://sharpsnmplib.codeplex.com/wikipage?title=600012&referringTitle=KB

这篇关于SharpSnmp VS SnmpSharpNet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆