RE: Multiple sets in one pdu

This is a discussion on RE: Multiple sets in one pdu within the SNMP Users forums, part of the Networking and Network Related category; On Tue, 2005-12-06 at 17:30 -0800, Yong Chen (yongche) wrote: > how do I walk through the ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2005
Dave Shield
 
Posts: n/a
Default RE: Multiple sets in one pdu

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
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 Search this Thread
Search this Thread:

Advanced Search
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

BB 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 03:05 AM.


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