What to fill in for **my_loop_context and **my_data_context

This is a discussion on What to fill in for **my_loop_context and **my_data_context within the SNMP Users forums, part of the Networking and Network Related category; Hi, I am trying to create an snmp table. The data for my table is dynamically changing from an external ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-30-2006
Li Juen Hwang
 
Posts: n/a
Default What to fill in for **my_loop_context and **my_data_context

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=...486&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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0