Hi,

I have been reading examples code and questions from others about how to
implement tables but I still have some troubles. Thanks for helping me out
on any of them:

[Scenario]
My table data is some configurations for example a DHCP pool. It consists
of information like pool names, DHCP server addresses, ports, masks and so
on. I can access them with corresponding commands.

[Questions]
1. I defined the table and each entry in the MIB file. I know I can use
snmpwalk to go through all entries in this table. But how to query data on
a specific row for example the data, DHCP server address, in the second
row, the second column.

2. I am using table_iterator to implement it by referencing the example
code of vacm_context.c. Am I choosing the right handler?

3. The sample code has three components:
+ an init function which get called when receiving requests.
+ a handler function
+ two functions getFirstContext and getNextConext that can be assigned to
hooks

The question is how should I insert my code to tell which row is being
read or updated (GET or SET). I think there should be an indexing
mechanism or something, but I couldn't find it in the vacm_context
example.

Thanks

/Pan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to