Menu

Get

Stéphane Charette

Get, GetNext, and GetBulk

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.


Related

Wiki: Home
Wiki: OID
Wiki: PDU

MongoDB Logo MongoDB