Hi,
I am trying to create an snmp table.
The data for my table is dynamically changing from an external
data source. The definition of the table follows.
RecMCAddressEntry ::= SEQUENCE {
recMCAddressIndex
IpAddress,
recMCAddress
IpAddress,
recMCAddressMessagesRecvd
Counter64,
recMCAddressMessagesDropped
Counter64
}
Which conf file should i use for mib2c to generate
template code? mib2c.iterate_access.conf
or mib2c.iterate_access.conf or doesn't matter?
I've tried using mib2c.iterate_access.conf, but
i don't know how to provide **my_loop_context and
**my_data_context in *Table_get_first_data_point() and
*Table_get_next_data_point().
Should I get real data for them when the routines are invoked?
Or should i just provide index value such as recMCAddressIndex.
I've looked at examples of netSnmpHostsTable.c,
ipCidrRouteTable.c, nsModuleTable.c and nsTransactionTable.c.
They all seem having static data so they can retrieve
the whole table in *get_first[next]_data_point and
then dispatch the data for GET/SET requests, which
is different from my case.
Can someone provide experience or a pointer to the proper
documentation.
Thanks.
Li-juen
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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