SNMPpp Wiki
Easy-to-use C++ library for various SNMP tasks
Status: Alpha
Brought to you by:
s_charette
Once you have a session handle to use, you can immediately begin querying the SNMP server. Many similar methods exist -- pick the one that most closely resembles what you want to do, such as starting with an existing [PDU] or an [OID].
For example:
SNMPpp::PDU get( SessionHandle &session, SNMPpp::PDU &pdu ); // use an existing PDU
SNMPpp::PDU get( SessionHandle &session, SNMPpp::OID &o ); // get a single OID
SNMPpp::PDU get( SessionHandle &session, SNMPpp::SetOID &oids ); // get a std::set of OIDs
A number of similar calls also exist for getNext() and getBulk(). See SNMPpp/Get.hpp for details.