[AGENT++] Error returned in the SNMPV3 PDU

Jochen Katz katz at agentpp.com
Sun Nov 30 23:12:48 CET 2003


Hi,

> I have a doubt about the manner in which the error is returned when a 
> snmpV3 call is made.
>  
> Say for example if the manager issues a request to a agent with an 
> incorrect security level,
   ^^^^^^^^^^^^^^^^^^^^^^^^

what exactly are you doing? Send an authPriv request using an user that 
is only configured for authNoPriv at the agent? In this case you should 
either receive a report with the "unsupported securityLevel" counter or 
the local error code 1403 (also unsupported securityLevel) while trying 
to encode the request.

 >  sometimes the error
> SNMP_ERROR_AUTH_ERR         16 //!< Authentication failure
>  
> is returned by the call itself (by the snmp.get() method).

I don't think, that this error is returned without contacting the agent, 
as SNMP_ERROR_AUTH_ERR is not used directly within snmp++.

> But certain other times for the same error, the call is a success, but 
> the PDU type is REPORT_MSG and the error has to be obtained by examining 
> the Oid.

> Can you please explain what decides this behaviour.

Possibly two different agents?

Regards,
   Jochen




More information about the AGENTPP mailing list