I am using Net-snmp 5.0.8 on redhat Enterprise WS 3 (2.4 kernel). I want my agent implemented as a separate agentX subagent. I built an agent that provides access to my MIB, which contains Read-Only tables. I get responses to my snmpwalk, so I have everything connected and functioning.
I am implementing a MIB that defines two tables. Call these tables "Session" and "History". Each table has multiple columns (call them "A", "B", "C", "D", "E", etc...). I have implemented the guts to the callback functions generated by mib2c, using configuration file "mib2c.iterate.conf". SessionTable_get_first_data_point SessionTable_get_next_data_point SessionTable_handler HistoryTable_get_first_data_point HistoryTable_get_next_data_point HistoryTable_handler I have several questions as I am trying to better understand how the arguments to these callback functions should be handled. 1. How do I interpret the arguments to the get_first callback so that I know whether this is truly a call for the first row of the table, or a call for the first row, but second (third, etc) column? I observe that the SessionTable_get_first_data_point function is called many times. I have read that this function is supposed to be called for the first row, and the SessionTable_get_next_data_point function should provide values for each of the rows. It appears that the get_first function is being called for each column of the table. 2. When should the SessionTable_handler function be called? And how do I interpret the arguments to this function? I had expected that the SessionTable_handler function would be called to provide data for each column. It appears to be called once for each column, and my implementation does determine which column should be processed. But it appears that this handler function is able to process several columns iteratively, and it seems to only process one column for each call. 3. Could someone tell me how to print out the OID I am working with in the _get_first, _get_next, or _handler functions? 4. How do I know which row of the table a particular GET has requested? Is that part of the arguments to _get_first (and _get_next)? 5. I understand that the callback functions are called the GET(SET) for the associated OID is received. 6. Have I done something wrong if the table callback functions are getting called many times? The table processing seems to call an awful lot of functions to get very little data. 7. Can anyone recommend any good Linux GUI tools for displaying MIB tables? I have MBrowse, and it fits the Linux GUI needs, but it doesn't display the MIB table values in a tablular (i.e. row-column) format. Chuck Cottrill ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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