Multiple object set in same PDU: question

This is a discussion on Multiple object set in same PDU: question within the SNMP Coders forums, part of the Networking and Network Related category; --0-1563302894-1127075230=:1549 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi all, (sorry for ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2005
Dipesh Gorashia
 
Posts: n/a
Default Multiple object set in same PDU: question

--0-1563302894-1127075230=:1549
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi all,

(sorry for long mail but I have tried to make it easy to read please try to help)

I have a "sparse" table (For each row I instantiate ceratain objects only under a particular condition).

Basically, I have a flag sort of an object which is always instantiated for each row in the table.

If the flag is TRUE, all the objects,in the row are instantiated. An object instantiated is always writable.

If the flag object is not TRUE, for that row only this flag object is instantied.

Now for the question.

I have a row with flag object set to to TRUE and all the objects in the row instantiated.
Next I try to do a SET operation, in which I set flag object to FALSE and also try to
set one of the selectively instantiated object to some value in the same SET request.

What should be the expected behaviour?

Should the system .......

--> set flag object first return no error, and return error for the other object.

or

--> process the selectively instantiated object first and next process the flag object?
In this case no error will be returned. But user will not see the instance of
selectively instantiateed object in the walk.

or

--> do validation on both the object simultaneuously and none of the sets go through with
inconsistent name error for either of the objects returned. The mib walk in this case will no show change for the row.

Basically it is boiling down to in which order the varbinds should be processed. (or not??).

Any insight, pointers will be greatly appreciated.

Cheers,
Dipesh


I thought I wanted a career; turns out I just wanted a salary.

---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
--0-1563302894-1127075230=:1549
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>(sorry for long mail but I have tried to make it easy to read please try to help)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have a "sparse" table (For each row&nbsp;I instantiate ceratain objects only under a particular condition).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Basically, I&nbsp;have a flag sort of an object which&nbsp;is always instantiated for each row in the table. </DIV>
<DIV>&nbsp;</DIV>
<DIV>If the flag is TRUE, all the objects,in the row are instantiated.&nbsp;An&nbsp;object&nbsp;instantiate d&nbsp;is always writable. </DIV>
<DIV>&nbsp;</DIV>
<DIV>If the flag object is not TRUE,&nbsp; for that row only this flag object is instantied.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now for the question.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have&nbsp;a row with flag&nbsp;object set to to TRUE and all the objects in the row instantiated.</DIV>
<DIV>Next I try to do a&nbsp;SET operation, in which I set flag object to FALSE and also try to</DIV>
<DIV>set one of the selectively instantiated object to some value in the same SET request.</DIV>
<DIV>&nbsp;</DIV>
<DIV>What should be the expected behaviour?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Should the system &nbsp;.......</DIV>
<DIV>&nbsp;</DIV>
<DIV>--&gt; set flag object first return no error, and return error for the other object.</DIV>
<DIV>&nbsp;</DIV>
<DIV>or</DIV>
<DIV>&nbsp;</DIV>
<DIV>--&gt;&nbsp;process the selectively instantiated&nbsp;object first and next process&nbsp;the flag object?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In this case no error will be returned. But user will not see the instance&nbsp; of </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectively&nbsp;instantiateed object in the walk.</DIV>
<DIV>&nbsp;</DIV>
<DIV>or</DIV>
<DIV>&nbsp;</DIV>
<DIV>--&gt; do validation on both the object simultaneuously and none of the sets go through with</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; inconsistent name error for either of the objects returned. The mib walk in this case will no&nbsp; show change&nbsp; for&nbsp;the row.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Basically it is boiling down to in which order the varbinds should be processed. (or not??).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any insight, pointers will be greatly appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers,</DIV>
<DIV>Dipesh</DIV><BR><BR>I thought I wanted a career; turns out I just wanted a salary.<p>
<hr size=1>Yahoo! for Good<br>
<a href="http://store.yahoo.com/redcross-donate3/">Click here to donate</a> to the Hurricane Katrina relief effort.

--0-1563302894-1127075230=:1549--


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
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:41 AM.


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