Bluehost.com Web Hosting $6.95

Re: how to use netsnmp_get_timed_stash_cache_handler

This is a discussion on Re: how to use netsnmp_get_timed_stash_cache_handler within the SNMP Users forums, part of the Networking and Network Related category; Hi, has anybody used the stash_cache_handler successfully? If so how? What do I need to make it compile and work? ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2007
Lothar Werzinger
 
Posts: n/a
Default Re: how to use netsnmp_get_timed_stash_cache_handler

Hi,

has anybody used the stash_cache_handler successfully? If so how?
What do I need to make it compile and work?


On Wednesday 02 May 2007 15:59, Lothar Werzinger wrote:
> Hi,
>
> I am using NetSNMP version 5.4.
>
> I implemented an agentx subagent and I want to use caching for my scalar
> values.
> It looks like the stash cache would be just what I am looking for. However
> I can not use it, as the header file that declares the method I wanted to
> use (netsnmp_get_timed_stash_cache_handler) is not there.
>
> It seems it does not get installed.
>
> Here's the error message from g++
> src/snmpagent/balancemanagerMIB.cpp:13:40: error:
> net-snmp/agent/stash_cache.h: No such file or directory
> src/snmpagent/balancemanagerMIB.cpp:162:
> error: 'netsnmp_get_timed_stash_cache_handler' was not declared in this
> scope
>
> I checked, and there really is no agent/stash_cache.h file
> Any help is appreciated.
>
>
> P.S.
> this is a snippet of my code that I wanted to compile
>
> netsnmp_handler_registration * p_reginfo = 0;
>
> p_reginfo = netsnmp_create_handler_registration(
> "totalBalances",
> balancemanager_handle_totalBalances,
> totalBalances_oid,
> OID_LENGTH(totalBalances_oid),
> HANDLER_CAN_RONLY
> );
>
> netsnmp_inject_handler(
> p_reginfo,
> netsnmp_get_timed_stash_cache_handler(
> 0, // expire after NETSNMP_DS_AGENT_CACHE_TIMEOUT seconds
> // 1, // expire after 1 second
> totalBalances_oid,
> OID_LENGTH(totalBalances_oid)
> )
> );
>
>
> Lothar


Lothar

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0