Easy to use SNMP client library for c++? [closed]

戏子无情 提交于 2019-11-27 11:04:29

问题


What's an easy to use SNMP client library for c++?


回答1:


Probably the best choice is net-snmp. Note that the library has "C" linkage but will work just fine with C++.




回答2:


SNMP++ is also a nice and open source library for C++ developers.

http://www.agentpp.com/api/cpp/snmp_pp.html




回答3:


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.




回答4:


OpenSNMP contains a complete multi-threaded implementation of SNMPv3 that is done in C++ (complete with classes, etc). It's not heavily used and maintained though.

Net-SNMP with v3 over TLS/DTLS is likely to be threadsafe as it's really SNMPv3/USM that contains threading issues. I think.



来源:https://stackoverflow.com/questions/249062/easy-to-use-snmp-client-library-for-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!