tags:

views:

2488

answers:

4

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

+6  A: 

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

Jon Trauntvein
+5  A: 

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

http://www.agentpp.com/snmp_pp3_x/snmp_pp3_x.html

Lex Li
Easier to use than net-snmp in my opinion...
Chris M.
looks nice and simple. Is it really? is it robust and reliable?
f4
Why not evaluate it? It's open source so you can feel free to try it out.
Lex Li
I will. But I'm on a tight schedule and I'd better not lose time with a poor library :) anyway it looks ok for now
f4
A: 

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.

notmg
A: 

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.

Wes Hardaker