Re: cache problems with table data mib2c
Kathy McLeod <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OF1BA96EC9.7CE22A89-ON86257743.004E9974-86257743.004EF43C@us.ibm.com> |
Yes, you are right. It should be "struct". I am testing in a different
environment now and that compiler didn't like struct. I was lucky to still
have an old copy of my code around - have added quite a bit to actually use
the backend DB for gets and sets instead of fake data. I will try your
suggestion and let you know how it goes.
Thanks.
Kathy McLeod
Dave Shield
<D.T.Shield@liver
pool.ac.uk> To
Sent by: Kathy McLeod/Rochester/IBM@IBMUS
dave.shield@googl cc
email.com net-snmp users
<[email protected]
et>
06/15/2010 03:27 Subject
AM Re: cache problems with table data
mib2c
On 14 June 2010 20:25, Kathy McLeod <[email protected]> wrote:
> (See attached file: lldpPortConfigTable.C)
Unfortunately, this file did not actually compile.
(it complained about line 210
entry = SNMP_MALLOC_TYPEDEF(lldpPortConfigTable_entry);
which should presumable be "struct lldpPortConfigTable_entry"
)
This is slightly worrying, since it implies you are working with
a different code file than the version you supplied.
> Summary of problems is 1) load is only called for an snmpget, not for
other
> commands; 2) the first get after the load always fails, and then when I
> repeat the command, it works (I am testing using a command line
interface);
Hmmm... this sounds as if the cache load routine is being called *after*
the decisions about which row of the table to process, rather than before.
Try tweaking the injection of the cache handler to use 'TABLE_HANDLER_NAME'
rather than 'TABLE_TDATA_NAME'. That seems to trigger the cache load
at a slightly earlier point, so that it's available both for the first
GET request,
and also for GETNEXT (and similar) requests.
Dave
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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