I am also going through this and decided to use mib2c.iterate_access.conf because it organized the code pretty well and the size is reasonable, but you do have to deal with table access out side of SNMP. MFD makes a much larger code image but gives you the container cache built in.
The init code is placed into an H agent/mibgroup/mib_module_inits.h) file automatically when you add files to existing modules and run configure. Or you can create your own MIB module. (see agent/mibgroup directory for examples) I don't see xxxTable_set_indexes() in the iterate_access code style? I think the my_loop_context replaces this and you have to deal with indexing and table searches directly. A GETNEXT request will cause data_point_first() to be called once, and then data_point_next() to be called on each subsequent NETNEXT call. I have not found any docs about this level of detail yet. Adam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joao Miguel Ferreira Sent: Thursday, March 08, 2007 2:35 PM To: [email protected] Subject: index/contents update flow (xxxTable_set_indexes /// initialize_table_xxxTable) Hello all, after some studiyng and looking at examples I'm down to a couple of doubts about implementing agent extension for tables. In my case I (guess I) will use mib2c.iterate_access.conf !?!?! but not really sure ? Any hints here ? ? Where can I find information on the index/contents initialization and refresh processing in the agent ? In particular: - What triggers this function: initialize_table_xxxTable() ? How many times is it called ? - What triggers this function: xxxTable_set_indexes() ? - What triggers this function: xxxTable_get_next_data_point() ? - How does the agent refresh all the possible indexes (as they change over time) ? I could suggest focusing on the 'agent/mibgroup/mibII/ipCidrRouteTable.c' example (just because this table is somewhat similar to the tables I must process). Sorry for the long question, I just need to be sure of this. If there is adequate documentation for this please point me to it. I won't mind to get answers directlly in e-mail !! :-) Thanks Joao jmf PS: I'm implementing Q-BRIDGE-MIB (rfc2674) in a strange way: I must adapt net-snmp Agent to an existing L2 snmp API from our L2 manufacturer/partner. So I need to get a good grasp of the internals of this in order to figure out the most correct/eficient way of acomplishing some kind of translation API between net-snmp and the underlying L2 firmware. Thanks a lot. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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 The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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
