On Thu, 16 Jun 2005 10:34:42 -0700 George, wrote: GG> So is there any way I can validate the user input? That is, if user GG> tries to set an OID which is not valid (Not in specific view /not able GG> to retrieve info / type is not as we expect etc), then it should return GG> BAD_VALUE.
No, it can't be done with the current code. For this to work, there would have to be finer-grained locking. For example, handlers to somehow establish relationships between each other that could be used to determine when it is safe for a set request to be delegate and let of get/set requests be processed. But it's a complicated problem that nobody has time to work on right now. I suggest you push the validation back to the GUI. They can do a get on the object that was input, and make sure they can get a value before calling the code to set up the monitoring. If you really have *no* say over the GUI, then you are up the creek without a paddle. You can experiment with letting set requests be delegated, but I wouldn't recommend it. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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/listinfo/net-snmp-users