Re: [RFC PATCH] DISMAN EVENT MIB - Disable triggers and clean up callbacks on SIGHUP

2009-04-23 Thread Tushar Gohad
Thanks Wes for the acceptance. I was under the impression that I need to get the approval here before I submit the patch on net-snmp.org/patches. Will submit to both the places the next time. :) - Tushar Wes Hardaker wrote: >>>>>> On Fri, 17 Apr 2009 08:26:13 -

Re: [RFC PATCH] DISMAN EVENT MIB - Disable triggers and clean up callbacks on SIGHUP

2009-04-17 Thread Tushar Gohad
Folks, Any comments on the patch below? Without the patch, traps for events such as linkup/down are seen multiple times upon reconfig on SIGHUP. Many thanks, - Tushar Tushar Gohad wrote: > On a SIGHUP, clear_mteTTable() clears trigger_table_data but the > mteTrigger entries

[RFC PATCH] DISMAN EVENT MIB - Disable triggers and clean up callbacks on SIGHUP

2009-04-15 Thread Tushar Gohad
On a SIGHUP, clear_mteTTable() clears trigger_table_data but the mteTrigger entries remain registered in the POST_READ_CONFIG callbacks table. This causes multiple trap notifications for the same event when a SIGHUP is issued to snmpd. The patch below makes sure that the callbacks for the mteT

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-27 Thread Tushar Gohad
Hello folks, The following patch uses the known_missing flag to make sure that the transient interfaces that are known to have gone away are not sent in response to GET* requests. If it is an acceptable solution to the missing-interfaces-being-displayed-by-snmpwalk problem, I will post it to

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-18 Thread Tushar Gohad
tri->colnum); +else { +requests->requestvb->type = SNMP_NOSUCHINSTANCE; +rc = SNMP_ERR_NOERROR; +} + if (rc) { if (MFD_SKIP == rc) { requests->requestvb->type = SNMP_NOSUCHINSTANC

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-16 Thread Tushar Gohad
nterfaces are not in response to the GET* requests. Many thanks, - Tushar Tushar Gohad wrote: > > Thanks Robert for the response. I sent a reply few minutes ago when I > had not seen this email. > > I will look closer at the net-snmp ifStatus of the interfaces and see > h

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-16 Thread Tushar Gohad
Thanks Robert for the response. I sent a reply few minutes ago when I had not seen this email. I will look closer at the net-snmp ifStatus of the interfaces and see how to use the known_missing flag. IMO, a distinction needs to be made between interfaces that have ifStatus down vs interfaces

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-16 Thread Tushar Gohad
> > TG> Is there a reason the cache is not invalidated before calling > TG> _cache_load()? > > Yes.. the old entries are needed to > > a) implement 64 bit counters (esp on 32 bit systems) > b) notice when interfaces appear and disappear > > If you look at the code, it wouldn't be too to add code

Re: IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-13 Thread Tushar Gohad
> TG> IF-MIB::ifName.36 = STRING: eth0.100 <=== stale entry > > Is the ifStatus down? > The interface is not down, but is removed using the command: 'vconfig rem eth0.100' so it is non-existent. > TG> Is there a reason the cache is not invalidated before calling > TG> _cach

IF-MIB/cache/NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD flag

2009-03-12 Thread Tushar Gohad
Folks, Does the ifTable cache have the DONT_FREE_BEFORE_LOAD and DONT_FREE_EXPIRED flags set on purpose? (Reference: agent/mibgroup/if-mib/ifTable/ifTable_data_access.c:149). These flags are causing stale VLAN interface entries being reported. # snmpwalk localhost ifName IF-

Add write support for ipForwarding and ipDefaultTTL objects

2007-11-08 Thread Tushar Gohad
Hello folks, The attached patch adds write support for the ipForwarding and ipDefaultTTL objects to net-snmp. The patch should be applied on top of the latest net-snmp SVN tree. Any feedback is welcome. Thanks, - Tushar Gohad Index: net-snmp/README.agent-mibs