Hi there,

Anybody have ideas on how I can achieve the below?

I'd really like for cache times for tables in snmp shared objects to be
configurable rather than been hard coded when the shared object is
originally initialised.

Is there some way of changing the default cache time after the shared object
is loaded?

Thanks,

Tim


-----Original Message-----
From: Tim Culhane [mailto:tim.j.culh...@gmail.com] 
Sent: 01 April 2015 15:52
To: 'Net-SNMP Coders'
Subject: making the cache timeout for container_load to be configurable

Hi,

I'd like to be able to configure the length of the cache timeout  for
container_load by way of a token in the snmpd.conf file.

However, this doesn't seem possible at the moment, because by the time  we
parse the snmpd.conf file the cache time has been set up in
_xxx_container_init() in the _xxx_interface.c file Note  that 'xxx'
represents the tablename in question.

Note that I'm using code generated from mib2c.

I can't even do something like remove the existing cache handler in my
config load handler and add a new one since a lot of the variables are local
to my interface source file.

Does anybody know if it is possible to configure a cache for the
container_load via the snmpd.conf file?

Thanks,

Tim



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to