在 Scala 中接收 SNMP 陷阱的简单方法是什么?

发布于 2024-08-18 13:02:24 字数 325 浏览 5 评论 0原文

如果有一个很棒的 SNMP 原生 Scala 库,就像 HTTP 的 Dispatch 一样,我会很高兴的,但是我找不到一个。有吗?除此之外,我应该使用像 SNMP4J 这样的 Java 库吗?我想要做的事情非常简单,以至于看起来有点矫枉过正:我只想在给定端口上侦听 SNMP 消息(始终采用相同的格式)并将它们发送给参与者。

有什么建议吗?

I'd love it if there is an awesome native Scala library for SNMP like there is Dispatch for HTTP but I can't find one. Is there one? Baring that, should I use a Java library like SNMP4J? What I want to do is so simple that it almost seems like overkill: I just want to listen on a given port for SNMP messages (which will always be in the same format) and send them on to an actor.

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

风流物 2024-08-25 13:02:24

我知道这是一个非常老的问题,而且您可能已经继续前进了……但我也遇到了同样的问题,因为我想使用 Scala 来实现 SNMP。好吧,我创建了自己的 DSL:SNMP4S。它也是构建在 SNMP4J 之上的,但我设计了该库,使得不会有与 SNMP4J 的编译时链接,因此可以在以后需要时进行更改。

I know this is a really old question, and you've probably long moved on... but I had the same problem in that I wanted to use Scala for SNMP. Well, I created my own DSL: SNMP4S. It is also built on top of SNMP4J, but I've designed the library such that there will be no compile-time linkages to SNMP4J so it can be changed out later if needed.

凉薄对峙 2024-08-25 13:02:24

简单的谷歌搜索我发现了这个
http://code.google.com/p/snmpbulk/

不过仍然需要 snmp4j 。我也不喜欢 SNMP4J,但我同意你的观点,没有简单的替代方案。祝您搜索顺利。

Simple googling I found this
http://code.google.com/p/snmpbulk/

Still requires snmp4j underneath though. And I also dont like SNMP4J but I agree with you that there are not simple alternatives. Good luck in your search.

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