Re: Seems that I found bugs related to stash_cashe in 5.7...

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAO+b5-o8Y1j6KqwqFdjMY+uysTPsuyR4T4cedbvQ2_j4eVuYjA@mail.gmail.com>
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.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.