[AGENT++] Authoritative EngineID Cached by Snmp++ ??
Anurag Jain
anuragjain026 at hotmail.com
Thu Nov 17 23:29:10 CET 2005
Jochen,
I do not see a reset_engine_id_table call in the reference or header:
http://agentpp.org/~katzwww/sa-ha.de/tmp_doc/classv3MP.html
Also cacn you confim if resetting the engine ID table cache will not affect
the usm table cache entries and ability to receive v3 traps?
Is it called otherwise?
Thanks
Anurag
>From: Jochen Katz <katz at agentpp.com>
>To: agentpp at agentpp.org
>Subject: Re: [AGENT++] Authoritative EngineID Cached by Snmp++ ??
>Date: Thu, 17 Nov 2005 22:08:24 +0100
>
>Hi,
>
> > I noticed that the autoritative engineID is being cached by snmp++
>
>yes, these are chached, as otherwise full discovery (three requests) has
>to be made for each auth/priv request.
>
> > due to which snmpv3 queries are failing ?
>
>Caching only has problems if the eingineID of the agent changes. And
>this SHOULD NOT happen all the time.
>
> > Is there a way to clear the cache ?
>
>Yes v3MP:reset_engine_id_table(), but the USM still has tables with
>users and engine boot times (but these don't prevent discovery of the
>new engine id).
>
> > Now lets say the engineID and the user on the agent changes and the
>manager
> > sets up another user with no engineID should not the snmp++ discover the
> > newEngineID.
>
>As written above, the authoritative engine ids should not change every
>few hours.
>
>I don't think that snmp++ should remove cached engine ids automatically,
>but I could add a method like v3MP::remove_from_engine_id_table(OctetStr
>&engineID, const OctetStr &host, int port). So after the application
>receives a unknown engine id report, it can either decide to display a
>warning message to the user or to remove the engine id and try the
>request again. New functions to remove engine ids from USM will also be
>added to snmp++.
>
>Regards,
> Jochen
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/agentpp
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
More information about the AGENTPP
mailing list