Hi dave,

Thanx for the response. Actually other than consistency check, i need to 
do some more processing in one go.
Actually I am using NetSNMP as a EMS agent (mid level agent) and now 
when i get a set request from
above layer manager, i need to get/set  the data on lower layer 
components which are also supporting
SNMP.

Now if i do get one by one for each varbind or do set one by one i will 
generate more network traffic.
If i somehow could get the boundary of the PDU and then i can get /set 
on lower layer as one PDU.
Also i can not just relay this PDU from upper layer manager to lower 
layer components as i need to
do some processing and construct a new PDU.

Hope you get my requirement clearly. Pls suggest what should i do to 
handle this.

Regards
- Amit

Dave Shield wrote:
> On 03/08/06, Amit Gupta <[EMAIL PROTECTED]> wrote:
>> Now the problem is that my handler function are independent and NetSNMP
>> toolkit itself call this one by one and i process
>> each of the varbind as if they are coming in multiple PDU from 
>> manager only.
>
> The Net-SNMP agent processes one SET request at a time, and finished
> one SET request before starting the next.  Each such request will
> result in several passes (RESERVE1, RESERVE2, etc).  If two modules
> need to co-operate in the processing of such a request, they can use
> the knowledge about which pass they're in, to ensure that the overall
> request is consistent, and act "as if simultaneously".
>
>
>> Is there any way I can perform PDU level processing while setting scalar
>> and tabular parameters both?
>
> Perform the validation of individual values in the RESERVE1 pass,
> make a provisional (internal) assignment of the new value in the 
> RESERVE2 pass,
> check that these new values are consistent in the ACTION pass,
> and activate them in the COMMIT pass.
>
> That's not the only way to handle this, but it's probably the simplest
> - particularly if you're needing to have consistency checks across
> more than one table (or a table and scalars).
>
>
>> Also pls let me know for GET PDU also.
>
> GET requests don't have the same multi-pass processing, but they
> shouldn't need it.  The value for a particular instance should be
> independent of whatever other values are requested at the same time.
>
> Dave
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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