Re: Howto setup netsnmp for proxying and failover

Boris Zweimueller <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
> Hi Dave
> 
> thanks a lot for your fast answer!
> 
> - I don't know how you'd want to handle receiving different answers from
> - the parralel proxied agents, but the above should be a workable arrangement.
> Answers from different parallel proxies are simply compared. If they are different this shows some missconfiguration/error. Then the device(s) are restarted and reconfigured somethin like that.
> 
>  -  send the delegated request to multiple destinations
> 
> I already looked at the current proxy code and made some simple examples sending the same request multiple times. 
> 
> I found that the easiest method would probably be, if 'doublicate registrations' would be possible, so that proxy requests for the same oid (but with different session info - e.g. other peername) get executed by the proxy_handler. I have not been able to figure out how exactly this doublicate entries are removed from the processing list in the agent_registry. Could you give me a hint? Thanks a lot!
> 
> Boris


> 
> 
> Am 19.05.2010 um 09:37 schrieb Dave Shield:
> 
>> On 18 May 2010 22:38, Boris Zweimueller <[email protected]> wrote:
>>> For failover reasons, the hardwares device is doubled.
>>> Failure of one device should be handeled transparently.
>>> So ...  SNMP Requests should always go to both internal devices
>> 
>>> How can one request be forwarded to two agents?
>>> How can answers be collected and be sentback to the manager?
>> 
>> 
>> That's not a model of operation which the current agent supports.
>> The proxy module can forward incoming SNMP requests to a specified (single)
>> subagent,  but isn't designed to handle multiple redundant subagents
>> for the same request.   You'd have to implement this yourself.
>> 
>> I'd suggest you start with the existing proxy code, and extend it to:
>> -  send the delegated request to multiple destinations
>> -  accept the first response (as currently)
>> -  accept and discard all following responses
>> 
>> I don't know how you'd want to handle receiving different answers from
>> the parralel proxied agents, but the above should be a workable arrangement.
>> 
>> 
>> 
>> Dave
> 


------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.