snmp agent libraries for C/C++?

2019-05-23 10:45发布

问题:

I have to implement a performance statistics MIB for a linux based device and I am looking for a good agent development library. I came across net-snmp and agent++ libraries. I am looking for easier to understand and robust library. Which is the best library if usability and robustness is main criteria?

回答1:

I have used net-snmp. It is robust and works well. The API is in C but quite simple to encapsulate. More than a library and APIs it is a well tested set of tools to handle SNMP. A reference. I don't know agent++. It is perhaps simpler to deal with as it seems to be a C++ lib.

my2c



回答2:

I used Agent++ and it worked great. They have a tool to automatically creates C++ code to manage a MIB.



标签: c++ c snmp