Dave> I've come up with the following list of required tasks facing such
Dave> a helper.  What else (or different) would it need to provide?

Dave> SNMP-request handling:
Dave> - register (and unregister) the table
Dave> - add or remove a row to/from the table
Dave> - retrieve the row relating to a specific varbind request
Dave> - retrieve the indexes relating to this row (?)

Dave> External handling
Dave> - retrieve a particular row (specified by index)
Dave> - walk through the rows of the table (order not important)

Dave> I *think* that should cover all requirements.  What have I missed?

Wes> I think there are actually 2 cases (Robert and I have been arguing
Wes> about this for ages):

Wes>   1) data stored internally in our MIB structures.
Wes>   2) data stored externally

Wes> And how you treat them is entirely different some of the time.

Quite possibly - but that feels to be jumping ahead a bit.
I'm not thinking about the *how* just yet - I want to be clear
about *what* might be needed first.


Wes> EG, for #1 we need routines to easily access the stored data.

Which is one of the things listed above.

Wes> I'm sure an ideal thing for most people would be a variable-argument
Wes> function to return data based on values passed:
Wes>
Wes>   get_my_darn_data(tableptr, indexval1, indexval2, ...)

<Bzzz>
That's "how" again.
I'm not interested in that just yet.
Let's be clear about "What" first.


Wes> Iterating is nice, but really even that requires them to loop
Wes> when we could do it for them most of the time.

But there are tasks where this is exactly what would be required.
(e.g. sending a particular trap to all the entries in the Target Table)

Take another look at the "External handling" list above.
That identifies two basic requirements:

  - go straight to a particular row
        (details to be determined later)
  - do something with every row

Are there any other possibilities that might need to be covered?

Dave


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to