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

4

35

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

Kiakiah answered 30/10, 2008 at 1:59 Comment(0)
S
13

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

Seldon answered 30/10, 2008 at 2:34 Comment(0)
S
21

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

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

Stopgap answered 23/11, 2008 at 9:51 Comment(7)
Easier to use than net-snmp in my opinion...Oakley
looks nice and simple. Is it really? is it robust and reliable?Oberstone
Why not evaluate it? It's open source so you can feel free to try it out.Stopgap
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 nowOberstone
AES 192 encryption failed for me using this libraryPredicate
There exists at least two different AES192 implementations: 1. That one that was defined in a IETF draft. That has been originally implemented by SNMP++ (agentpp.com) and SNMP4J. 2. An implementation that was part of many Cisco devices which used a different algorithm than in the IETF draft. Most likely Antarus tested with a Cisco device. The second AES192 implementation is now also available in SNMP++ and SNMP4J.Telefilm
Is there any Code example or some kind of "Get Started" tutorial available? All I can find is the class documentation over here: agentpp.com/doc/snmp++3.x/index.htmlPhototelegraphy
S
13

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

Seldon answered 30/10, 2008 at 2:34 Comment(0)
F
5

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.

Franni answered 17/5, 2010 at 14:23 Comment(0)
I
1

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.

Invariant answered 12/10, 2010 at 20:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.