I think I did not make my Question clear. The scenario is like this. I need to monitor a user selected SNMP OID periodically. So when the user inputs an OID (I don't have control over GUI and knows only when coming to my SUB Agent as SNMP SET request), I need to check whether the OID is valid (i.e. whether the agent can read it). If not BAD_VALUE should be returned. Is there any way I can do this? Since, if I do a SNMP-GET within a SNMP-SET it is blocking.
Thanks in advance, Geo -----Original Message----- From: George, Geo Sent: Thursday, June 16, 2005 12:35 PM To: 'net-snmp-users@lists.sourceforge.net' Subject: RE: snmp_synch_response Thanks Robert. So is there any way I can validate the user input? That is, if user tries to set an OID which is not valid (Not in specific view /not able to retrieve info / type is not as we expect etc), then it should return BAD_VALUE. Regards, Geo -----Original Message----- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 12:28 PM To: George, Geo Cc: Dave Shield; net-snmp-users@lists.sourceforge.net Subject: Re: snmp_synch_response On Thu, 16 Jun 2005 08:17:42 -0700 George, wrote: GG> So I opened another snmp_session, reading community strings from conf GG> file and issued a SNMP_GET. Its fetching the values ( in alarm GG> functions). GG> GG> Now the problem is calling the same routine during a SET operation (of GG> an OID). This will not work. Your get request will block while waiting for the set request to finish. And the agent will not process other requests during processing of a set request. -- 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_idt77&alloc_id492&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