something confused about "mib2c mib2c -c mib2c.mfd.conf XXXTable"
ema <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
first i'll introduce my working environment net-snmp:net-snmp-5.4.2.1 src rpm linux: fedora 11, i386 i have define a table in my mibfile, assume testTable then i use mib2c -c mib2c.mfd.conf testTable to generate some code and i load data in the function int testTable_container_load(netsnmp_container * container) which is in testTable_data_access.c the way i load data is from a table in the database, however this table updated very frequently when it offer me to choose what way to work, this is my option 2) Set defaults now[DEFAULT] [2] 2) Yes, use my own structure [2] [netsnmp_data_list *] 1) No, use generated[DEFAULT] [1] 1) no, no initialization needed [1] 1) All values will be stored as defined by the MIB[DEFAULT] [1] 2) container-cached [2] 2) Yes. My data is SEMI-TRANSIENT [2 ] 1) generate example code [DEFAULT] [1] 1) No, all columns always exist for every row[DEFAULT] [1] 1) do not generate makefile/AgentX code[DEFAULT] [1] the option is in left, and the right is my answer and i set cache_timeout 60 s i have an external program periodically send snmpwalk request to get all the data in snmp i met question like that assume the first quest can trigger loading data function however it can dump all the data in the container after it send part data and then load_data again however this data will not be the last data load, so i get some uncorrect record. whether there's other implemention that we i do snmpwalk. it only load data once, after i finished it it can dump, then i do snmpwalk again, it load data again. and i tried another 2) Set defaults now[DEFAULT] [2] 2) Yes, use my own structure [2] [netsnmp_data_list *] 1) No, use generated[DEFAULT] [1] 1) no, no initialization needed [1] 1) All values will be stored as defined by the MIB[DEFAULT] [1] 1) container : [DEFAULT] [1] 2) Yes. My data is SEMI-TRANSIENT [2 ] 1) generate example code [DEFAULT] [1] 1) No, all columns always exist for every row[DEFAULT] [1] 1) do not generate makefile/AgentX code[DEFAULT] [1] this time i choose container mode, however the program didn't call testTable_container_load ps i use ./testTable -f -Dverbose -M so that i can see the calling infomation ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ 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