snmp interface index issue

2010-05-03 Thread Brian Lu
Hi All My original version of net-snmp agent is ver: 5.2.5.1 I have compiled ver:5.5 and replaced my old snmp agent in my linux system. After some test,I found new version can't receive traffic info if my interface index id was changed. But ver:5.2.5.1 can work fine with original interface index i

Re: Index Issue: container not get freed before another cache_load

2007-10-10 Thread Sharad Chandra
Hi, In cache_free i used, CONTAINER_FREE (container); call. but that gives me segmentation fault. Latter i thought, where index is being register, if that is freed may work. Therefor before going to loop and calling se_find_value_in_slist and se_add_pair_to_slist for index. i used se_c

Re: Index Issue: container not get freed before another cache_load

2007-10-10 Thread Rasanth Akali Kandoth
All, in snmplib/container_binary_array.c: netsnmp_binary_array_release() , binary_array_table *t = (binary_array_table*)c->container_data; if (t->data != NULL) { SNMP_FREE(t->data); } SNMP_FREE(t); SNMP_FREE(c); is it fine to free t->data as above, since it is a void**

Index Issue: container not get freed before another cache_load

2007-10-09 Thread Sharad Chandra
Hi Guys, snmpd is not able clear cache (container), I guess. I used mib2c tool to generate codes. Once i run snmpwalk, I got SNMPv2-SMI::enterprises.5713.2.10.15.40.1.1.2 = INTEGER: 2 SNMPv2-SMI::enterprises.5713.2.10.15.40.1.1.4 = INTEGER: 4 SNMPv2-SMI::enterprises.5713.2.10.15.40.1.2.2

Re: Index issue....

2007-05-07 Thread Dave Shield
On 07/05/07, Senthil Nathan <[EMAIL PROTECTED]> wrote: > I have an general query, > In SNMP MIB table ,the indexing is dynamic? What exactly do you mean by that? The style of indexing (how many index values, and what type - single integer, multi-dimensional, strings, etc) is fixed, and defined

Index issue....

2007-05-07 Thread Senthil Nathan
Hi , I have an general query, In SNMP MIB table ,the indexing is dynamic? presently i am using mib2c iterator config,net-snmp style of code. I have followed the position count as loop context.I have made the index as fixed. is it possible for dynamic ? Secondly, when i make the Get-bulk or walk