Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

snmp

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

like image 318
Brian R. Bondy Avatar asked Oct 30 '08 01:10

Brian R. Bondy


People also ask

What protocol does SNMP use?

SNMP generally uses User Datagram Protocol (UDP) port number 161/162. An SNMP port is the SNMP communication endpoint. It is a logical construct that identifies SNMP data transfer. SNMP message transfer happens via UDP.

How does SNMP monitoring work?

SNMP monitoring can be used to collect information from your entire fleet of network devices. SNMP relies on a client-server application model, where a software server component (the SNMP Manager) collects information by querying a software client component (the SNMP Agent), which runs on a network device.

Which port is used when SNMP server wants to get an update status from all SNMP agents?

SNMP Port NumbersPort 161: This port number is used when the NMS sends Get, GetNext, GetBulk, and Set requests and the SNMP agent responds to these requests.

What is an SNMP manager?

The SNMP manager is a system that controls and monitors the activities of network hosts using SNMP. The most common managing system is a network management system (NMS). The term NMS can be applied either to a dedicated device used for network management or to the applications used on such a device.


2 Answers

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

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

like image 101
Lex Li Avatar answered Sep 21 '22 13:09

Lex Li


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

like image 44
Jon Trauntvein Avatar answered Sep 19 '22 13:09

Jon Trauntvein