[AGENT++] Using SNMP Get for Private OIDs

Jochen Katz katz at agentpp.com
Thu Oct 20 20:52:49 CEST 2011


Hi,

> I am using the example snmp get() function from the snmp++ package, trying
> to read an oid that is under the "Private" community. I am receiving an
> error: SNMP: variable does not exist.
> 
> Could you kindly give some advice on how to get the response for private
> oids? I do have a username and password for the agent device but dont know
> how to include that in the sample function.

please have a look at the snmpGet example. You most likely have to use
SNMPv3 to get the object and you have to specify the Oid in its full
form, 1.3.6.1.4.1...

Regards,
  Jochen



More information about the AGENTPP mailing list