易于使用的 C++ SNMP 客户端库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/249062/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Easy to use SNMP client library for c++?
提问by Brian R. Bondy
What's an easy to use SNMP client library for c++?
什么是易于使用的 C++ SNMP 客户端库?
采纳答案by Jon Trauntvein
回答by Lex Li
SNMP++ is also a nice and open source library for C++ developers.
SNMP++ 对于 C++ 开发人员来说也是一个不错的开源库。
回答by initzero
I have found that Net-SNMP does not support multi-threading with v3 type queries. So if you are writing an SNMP monitoring tool that will be polling multiple hosts then you will need to take this into consideration.
我发现 Net-SNMP 不支持 v3 类型查询的多线程。因此,如果您正在编写一个轮询多个主机的 SNMP 监控工具,那么您需要考虑到这一点。
回答by Wes Hardaker
OpenSNMPcontains a complete multi-threaded implementation of SNMPv3 that is done in C++ (complete with classes, etc). It's not heavily used and maintained though.
OpenSNMP包含一个完整的 SNMPv3 多线程实现,它是用 C++ 完成的(包括类等)。虽然它没有被大量使用和维护。
Net-SNMP with v3 over TLS/DTLS is likely to be threadsafe as it's really SNMPv3/USM that contains threading issues. I think.
Net-SNMP with v3 over TLS/DTLS 可能是线程安全的,因为它确实是包含线程问题的 SNMPv3/USM。我认为。