Re: Re: Re: How agent acts upon receiving a request???

2007-04-27 Thread Dave Shield
On 27/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote: > About this part of your E-mail: > > >>Normally, this buffer would be updated automatically > as part of the normal operation of the subsystem. > > Could you give an example of this? Are they using timer for > updating the buffer? > What

Fwd: Re: Re: How agent acts upon receiving a request???

2007-04-26 Thread Reza Salehi
Thanks a lot Dave for your complete explanation.It was very informative. I was not using Varbind to update the variable and you mentioned this is my problem. I am using Snmp-instance to register a int or String as you said I will replace it with snmp-scalar. About this part of your E-

Re: Re: How agent acts upon receiving a request???

2007-04-26 Thread Dave Shield
On 25/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote: > I am using > netsnmp_register_int_instant(..,..,..,..My_handler) I presume you mean 'netsnmp_register_int_instance()' The basic idea of this particular helper is that you're telling the agent: "Here's an integer variable. Watch it, and w

Fwd: Re: How agent acts upon receiving a request???

2007-04-25 Thread Reza Salehi
Thanks Dave. I am using netsnmp_register_int_instant(..,..,..,..My_handler) then My_handler(,,netsnmp_agent_request_info *reqinfo,...) then case( reqinfo->mode). is this the right way? Regards, Reza Note: forwarded message attached.

Re: How agent acts upon receiving a request???

2007-04-25 Thread Dave Shield
On 25/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote: > I am using handler when I register my MIB but it seems agent upon > receiving request(snmpget or walk) first send response back with current > data and then goes to handler which over there I am updating my data. No - that's not how the agent

How agent acts upon receiving a request???

2007-04-25 Thread Reza Salehi
Hi All, Is there anyway that I can update my MIB data upon receiving a request(snmpget and walk) and send result back in the same response? I am using handler when I register my MIB but it seems agent upon receiving request(snmpget or walk) first send response back with current data