Re: proxyed agents and dynamic module
"Guillaume Desticourt" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/23/06, Wes Hardaker <[email protected]> wrote: > > >>>>> On Wed, 22 Mar 2006 14:47:33 +0000, "Guillaume Desticourt" < > [email protected]> said: > > Guillaume> case MODE_GET: > Guillaume> status1 = snmp_synch_response(_session_handler, > Guillaume> _pdu1, > Guillaume> &response1); > > this won't work because you're querying the same agent as is > processing the request. If you really want to do this (and I'd argue > it may not be the best way to do what you're trying to do) you can, > but it'll take a lot more work. You need to do 3 things: > > 1) learn how to send an asynchronous request instead of a synchronous > one > 2) send the request to a callback transport instead (an example is in > agent/mibgroup/disman/event/ ). this is optional but is more > efficient than sending it to the 161 port like you're doing now. > 3) use a delayed response from within your module. See > agent/mibgroup/delayed_instance.c for an example. ok i am going to have a look at that. but since you re talking about it, i d be keen to know what is the best way of doing what i have been trying to do thank you for your help, -- Guillaume Desticourt