[AGENT++] Error returned in the SNMPV3 PDU
Frank Fock
fock at agentpp.com
Mon Dec 1 00:49:13 CET 2003
Hi,
I just want to add to Jochen's response, that the SNMP_ERROR_AUTH_ERR
is returned by AGENT++ when the VACM denies access to a particular object
instance.
Regards,
Frank Fock
Jochen Katz wrote:
> 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
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://agentpp.org/mailman/listinfo/agentpp
>
More information about the AGENTPP
mailing list