AW: [AGENT++] Problem with V3_MP Object

fock at agentpp.com fock at agentpp.com
Wed Aug 3 22:18:27 CEST 2005


Hi,

There are at least two approaches for your problem:
1. Do not change the context engine ID on the agent side
(it is not a good idea to change the engine ID or context
engine ID on changes or reboots of an agent because this
breaks SNMPv3 mechanism)
2. If a request times out, then reset contextEngineID
and engineID and rediscover it and then retry.

Best regards,
Frank

>
>
>Hi,
>
>We have a Multi-Threaded Application which uses the SNMP++ V3.2. We are
>facing a strange problem,
>
>If we create the v3_MP Object everytime for a V3 Query, this will slow
>down our queries and also is causing crashes since multiple threads are
>using the same object.
>
>To overcome this problem, we have made V3_MP Object as static and we are
>into a altogether new problem. First time every thing works fine and
>there is no problem until there is a change on the agent, If the agent
>switches from V3 to V1 and then back to V3, then a new Context Engine ID
>is generated. Since V3_MP is static we already have a V3_MP object and
>also have a ContextEngineID so we not query to get the context Engine
>ID. this causes our queries to fail when ever there is a change in the
>agent.
>
>
>Please advice on the best approach to resolve this problem. Thanks in
>advance.
>
>Regards,
>Sudhindra V Kulkarni
>--------------------------------
>
>
>
>
>
>
>Confidentiality Notice
>
>The information contained in this electronic message and any attachments to 
>this message are intended
>for the exclusive use of the addressee(s) and may contain confidential or 
>privileged information. If
>you are not the intended recipient, please notify the sender at Wipro or 
>Mailadmin at wipro.com immediately
>and destroy all copies of this message and any attachments.
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
><a 
>href="http://lists.agentpp.org/mailman/listinfo/agentpp">http://lists.agentpp.o
>rg/mailman/listinfo/agentpp</a>



More information about the AGENTPP mailing list