>>>>> "CN" == Chetan Nanda <[EMAIL PROTECTED]> writes:

CN> Hi All,
CN> I am using a very old code of Net SNMP (i.e. CMU SNMP agent, from
CN> which Net-SNMP has been derived).
CN> I am using this old code for developing small application based on
CN> SNMP so need only basic 'snmpd' functionality.

CN> My question is:
CN> I am adding a new MIB into SNMP agent, and there are three object
CN> which are dependent on each other i.e. a value of one object has
CN> dependency on other. And if during Set operation PDU containing set
CN> for all the three objects, Is there any common place where I can
CN> validate values of all these object with each other, before doing
CN> actual set-operation.

I suggest looking at:

  http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module

Which describes the state model in the "Set Processing" section which is
true for CMU-SNMP too.

There is no common place to perform those checks in the CMU code, but
you can do it within one of the write_ functions that implement your SET
support.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to