Hi Bart,

 

Thanks for the reply.  First of all, I didn't claimed that stash_cache
works in 5.6, I have no 5.6 at all...

I know that injectHandler works after your patch (as you stated that you
saw : injectHandler: injecting handler cache_handler into
nsModuleTable), but what does not work is the stash_cache itself. I
mean: stash cache has no effect and it is not being called at all. Only
after my 2 other patches I saw that it begun to work. To check if
stash_cache is being invoked or not is very simple: only add
-Dhelper:stash_cache to cmd line. If during nsModuleTable SNMP walk, you
see a lot of stash_cache log lines, it means that it is doing its work.
If you don't see anything relating stash_cache, it means that is has no
effect ...

 

Ivo

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Bart Van Assche
Sent: Tuesday, July 26, 2011 2:41 PM
To: Ivo Faldini
Cc: [email protected]; Meir Katz
Subject: Re: Seems that I found bugs related to stash_cashe in 5.7...

 

On Tue, Jul 26, 2011 at 11:08 AM, Ivo Faldini
<[email protected]> wrote:

The first and immediate fix is to: 

#define NETSNMP_FEATURE_HAS_STASH_CACHE

In a place that all_helpers.c will see it


That's wrong because that would break the configure option
--enable-minimal. See also
https://sourceforge.net/tracker/?group_id=12694&atid=312694 for a proper
patch.
 

        Add to your snmpd.conf:

        injectHandler stash_cache nsModuleTable table_iterator

         

        try to execute snmpd with follow cmd line:

        snmpd
-DinjectHandler,helper:stash_cache,initialize_table_nsModuleTable -c
snmpd.conf


What I see in the logs with both 5.7 and 5.6 after having applied the
aforementioned patch is:

injectHandler: injecting handler cache_handler into nsModuleTable

So iterator injection seems to work fine.

But I'm not sure that your claim is correct that the stash_cache is
working fine in 5.6 - a MIB walk times out at the end of the host
resources MIB with 5.6:

$ agent/snmpd -Mmibs -c ../snmpd.conf -f -Lo
-DinjectHandler,helper:stash_cache,initialize_table_nsModuleTable :1161
&
[ ... ]
$ apps/snmpwalk -Mmibs -v2c -cpublic :1161 .1
[ ... ]
HOST-RESOURCES-MIB::hrSWRunPerfMem.32504 = INTEGER: 663508 KBytes
Timeout: No Response from :1161

The above test works fine with 5.4 and 5.5 however.

Bart.


NOTICE: This email and any files transmitted with it are Enablence and 
Teledata-Networks confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this 
email in error please notify the sender. This message contains Enablence and 
Teledata-Networks confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to