Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Leo Lin
Understood, thanks so much Dave   Leo; --- On Mon, 4/18/11, Dave Shield wrote: From: Dave Shield Subject: Re: sending an IPC for incoming snmpset commands To: "Leo Lin" Cc: net-snmp-users@lists.sourceforge.net Date: Monday, April 18, 2011, 6:42 AM On 18 April 2011 14:10, Leo

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 18 April 2011 14:10, Leo Lin wrote: >  I make use of text file to exchange the value of OID between my main program > and snmpd.  when snmp manager issue a get, snmpd reads the contents from > this text file, and write to it with 'sets'. In which case, it would make more sense to trigger the I

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Leo Lin
;sets'.  I use several modules to extend my snmp agent, and I would like to use IPC to notify my application program when and OID value has changed due to the snmp manager.   Thanks!   Leo; --- On Mon, 4/18/11, Dave Shield wrote: From: Dave Shield Subject: Re: sending an IPC for incomi

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 17 April 2011 03:02, Leo Lin wrote: > I would like to send an interprocess communicatio message whenever > an snmpset command is received by the snmpd. Regardless of the OID that is being set? Why? What are you trying to do here? >  I checked the snmpd source code, and seems that my custom

sending an IPC for incoming snmpset commands

2011-04-16 Thread Leo Lin
Hi,   I would like to send an interprocess communicatio message whenever an snmpset command is received by the snmpd.  I checked the snmpd source code, and seems that my custom code should be place in the receive() function, however, I cannot find where the requests are handled beside my custom