On Tue, 2005-12-06 at 17:30 -0800, Yong Chen (yongche) wrote:
> how do I walk through the list in 5.x?
> is that the forth input parameter: 'requests', has all incoming varbinds?
> I just go through it via "request->next"?

Yup.


> Actually I'm doing SET for a table in UCD 4.x style,
> then how do I walk through the incoming varbinds for a SET?

With the v4 style, you'll be passed the varbinds one at a time.
The 'write_xxx' routine will be called for each varbind in turn.

(And then this whole list will be repeated for each pass of
 the SET processing - see AGENT.txt for more details).



> The usual basic technique is to walk through the full list of
> assignments, checking them individually and making any preparations for
> acting on them.    RESERVE1 ?

Yup.

>   Then walk through the list again, updating the individual assignments.
> RESERVE2 ?

Yup.

>   Then walk through the list *again*, checking that the final state is
> consistent.  ACTION ?

Yup.

>   Then walk through the list again, tidying up.    COMMIT ?

By George, I think he's got it!


(That's not the only way of organising things, but it's probably
 the easiest to understand.  I can confuse you more by explaining
 some of the alternatives, but only if you actually want to know!)

Dave


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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