Re: refresh time for container_load func.

2010-03-27 Thread Hemant Soundankar
Robert and Dave thanks a lot for your help . Dave you are right. I did the same. Thanks, On Sat, Mar 27, 2010 at 4:01 PM, Dave Shield wrote: > On 26 March 2010 16:58, Hemant Soundankar > wrote: > > Because the code says , > > >> cache->timeout = RDBMSDBTABLE_CACHE_TIMEOUT; > > This line come

Re: refresh time for container_load func.

2010-03-27 Thread Dave Shield
On 26 March 2010 16:58, Hemant Soundankar wrote: > Because the code says , >     >>  cache->timeout = RDBMSDBTABLE_CACHE_TIMEOUT; > This line comes in my "Tablename_container_init" function. Why not simply change that to read cache->timeout = 1; /* 1 second */ Dave ---

Re: refresh time for container_load func.

2010-03-26 Thread Robert Story
On Fri, 26 Mar 2010 22:28:34 +0530 Hemant wrote: HS> Hmm ... Thanks Dave . HS> Actually i got it. HS> HS> I just need to know what is the default value for "TABLENAME_CACHE_TIMEOUT" HS> enum. should be in your Table_data_access.h header, and probably is 60 (seconds). ---

Re: refresh time for container_load func.

2010-03-26 Thread Hemant Soundankar
Hmm ... Thanks Dave . Actually i got it. I just need to know what is the default value for "TABLENAME_CACHE_TIMEOUT" enum. Because the code says , >> cache->timeout = RDBMSDBTABLE_CACHE_TIMEOUT; This line comes in my "Tablename_container_init" function. I tried searching the same in the tem

Re: refresh time for container_load func.

2010-03-26 Thread Dave Shield
On 26 March 2010 16:40, Hemant Soundankar wrote: > Perfect Dave!! But how do i change the cache timeout to some other value. I've no idea - you haven't said anything about what your code looks like. I can't read your mind (or your computer). Sorry. Dave

Re: refresh time for container_load func.

2010-03-26 Thread Hemant Soundankar
Perfect Dave!! But how do i change the cache timeout to some other value. On Fri, Mar 26, 2010 at 9:20 PM, Dave Shield wrote: > On 26 March 2010 15:38, Hemant Soundankar > wrote: > > Is there any other implementation where i can still use container_load > and > > implement some logic in where

Re: refresh time for container_load func.

2010-03-26 Thread Dave Shield
On 26 March 2010 15:38, Hemant Soundankar wrote: > Is there any other implementation where i can still use container_load and > implement some logic in where if i issue any snmp command it should run the > subagent code again. > What my understanding is that the net-snmp master agent is implementi

Re: refresh time for container_load func.

2010-03-26 Thread Hemant Soundankar
Is there any other implementation where i can still use container_load and implement some logic in where if i issue any snmp command it should run the subagent code again. What my understanding is that the net-snmp master agent is implementing some cache. Whenever i issue some snmp command, the res

Re: refresh time for container_load func.

2010-03-26 Thread Robert Story
On Fri, 26 Mar 2010 18:34:58 +0530 Hemant wrote: HS> I am using container_load function in data_access.c file to implement the HS> dynamism. HS> I need to know how i can execute container_load function every time i issue HS> the snmptable command in the terminal. There is no way to know when you a

refresh time for container_load func.

2010-03-26 Thread Hemant Soundankar
Hi ALL, I am using Net-SNMP 5.4.2.1 version . I am coding a subagent for a MIB whose values returned will change dynamically according to some conf file that i have written. I am using container_load function in data_access.c file to implement the dynamism. I need to know how i can execute contain