Re: cache problems with table data mib2c
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 16 June 2010 15:23, Kathy McLeod <[email protected]> wrote: > In your previous note, you said to "Try tweaking the injection of the cache > handler to use 'TABLE_HANDLER_NAME' > > In this note, you say, "If you insert the cache helper using > 'TABLE_HELPER_NAME' > so is it Handler or Helper? HANDLER >From the header file <net-snmp/agent/table.h> #define TABLE_HANDLER_NAME "table" ("Helper" was my memory failing me, and being too lazy to check the code. Sorry!) > The code I sent you is the one I tested with yesterday, and it is NOT > working fine. (I am generating the data and not calling the backend). > .... are you saying the code I sent you always worked with no seg. > faults? (the unload/load works, but did the commands after all work?) Yes. I've tried assorted walks, gets, sets, etc - and everything looks correct. See attached - the changing index values show that the free routine is being invoked as expected. 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
lldp-testing.txt
(text/plain, 4.1 KB)
$ snmpget localhost LLDP-MIB::lldpPortConfigAdminStatus.2 ; sleep 45 ; snmpget localhost LLDP-MIB::lldpPortConfigAdminStatus.6
LLDP-MIB::lldpPortConfigAdminStatus.2 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.6 = INTEGER: txAndRx(3)
$ snmpgetnext localhost LLDP-MIB::lldpPortConfigAdminStatus ; sleep 45 ; snmpgetnext localhost LLDP-MIB::lldpPortConfigAdminStatus
LLDP-MIB::lldpPortConfigAdminStatus.9 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.13 = INTEGER: rxOnly(2)
$ snmpbulkget localhost LLDP-MIB::lldpPortConfigAdminStatus ; sleep 45 ; snmpbulkget localhost LLDP-MIB::lldpPortConfigAdminStatus
LLDP-MIB::lldpPortConfigAdminStatus.13 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.14 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.15 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.16 = INTEGER: txOnly(1)
LLDP-MIB::lldpPortConfigNotificationEnable.13 = INTEGER: 0
LLDP-MIB::lldpPortConfigNotificationEnable.14 = INTEGER: true(1)
LLDP-MIB::lldpPortConfigNotificationEnable.15 = INTEGER: 0
LLDP-MIB::lldpPortConfigNotificationEnable.16 = INTEGER: true(1)
LLDP-MIB::lldpPortConfigTLVsTxEnable.13 = BITS: 80 portDesc(0)
LLDP-MIB::lldpPortConfigTLVsTxEnable.14 = BITS: 40 sysName(1)
LLDP-MIB::lldpPortConfigAdminStatus.17 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.18 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.19 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.20 = INTEGER: txOnly(1)
LLDP-MIB::lldpPortConfigNotificationEnable.17 = INTEGER: 0
LLDP-MIB::lldpPortConfigNotificationEnable.18 = INTEGER: true(1)
LLDP-MIB::lldpPortConfigNotificationEnable.19 = INTEGER: 0
LLDP-MIB::lldpPortConfigNotificationEnable.20 = INTEGER: true(1)
LLDP-MIB::lldpPortConfigTLVsTxEnable.17 = BITS: 80 portDesc(0)
LLDP-MIB::lldpPortConfigTLVsTxEnable.18 = BITS: 40 sysName(1)
$ snmpbulkwalk localhost LLDP-MIB::lldpPortConfigAdminStatus ; sleep 45 ; snmpbulkwalk localhost LLDP-MIB::lldpPortConfigAdminStatus
LLDP-MIB::lldpPortConfigAdminStatus.21 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.22 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.23 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.24 = INTEGER: txOnly(1)
LLDP-MIB::lldpPortConfigAdminStatus.25 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.26 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.27 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.28 = INTEGER: txOnly(1)
$ snmpwalk localhost LLDP-MIB::lldpPortConfigAdminStatus ; sleep 45 ; snmpwalk localhost LLDP-MIB::lldpPortConfigAdminStatus
LLDP-MIB::lldpPortConfigAdminStatus.25 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.26 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.27 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.28 = INTEGER: txOnly(1)
LLDP-MIB::lldpPortConfigAdminStatus.29 = INTEGER: rxOnly(2)
LLDP-MIB::lldpPortConfigAdminStatus.30 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.31 = INTEGER: disabled(4)
LLDP-MIB::lldpPortConfigAdminStatus.32 = INTEGER: txOnly(1)
$ snmptable -Ci localhost LLDP-MIB::lldpPortConfigTable ; sleep 45 ; snmptable -Ci localhost LLDP-MIB::lldpPortConfigTable
SNMP table: LLDP-MIB::lldpPortConfigTable
index lldpPortConfigAdminStatus lldpPortConfigNotificationEnable lldpPortConfigTLVsTxEnable
41 rxOnly 0 "80 "
42 txAndRx true "40 "
43 disabled 0 "20 "
44 txOnly true "10 "
SNMP table: LLDP-MIB::lldpPortConfigTable
index lldpPortConfigAdminStatus lldpPortConfigNotificationEnable lldpPortConfigTLVsTxEnable
45 rxOnly 0 "80 "
46 txAndRx true "40 "
47 disabled 0 "20 "
48 txOnly true "10 "