On 31 May 2012 18:40, Magda Stefan <fane...@yahoo.com> wrote:
>       I don't know why, but the subagent it's not reloading the data into
> the cache when a snmpget request is coming. It binds the values at the
> beginning  but it's not changing them after the request.

>     I've tried different methods to make it reload the data:
>             4. Change the NETSNMPPRVTABLE_TIMEOUT with -1

That feels the most appropriate approach of the four.
I don't know why it's not working.

> int
> netSnmpPrvTable_load(netsnmp_cache * cache, void *vmagic)
> {
        :
>      printf("Riding files eth0_delay and eth0_datarate !!!!! \n");
        :
>     printf("loading cache: %d\n" ,(int) &cache);
> }


> void
> netSnmpPrvTable_free(netsnmp_cache * cache, void *vmagic)
> {
       :
>     printf("freeing cache: %d\n",(int) &cache);
       :
> }


I note that you've got debugging statements in the load/free
routines.   Try issuing a single GETNEXT request on the table,
then issue a second one.
   What debugging output is printed?

Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to