Re: sending an IPC for incoming snmpset commands
Leo Lin <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Dave for such prompt reply. In my application I have the snmpd and my main program runing. 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'. 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 <[email protected]> wrote: From: Dave Shield <[email protected]> Subject: Re: sending an IPC for incoming snmpset commands To: "Leo Lin" <[email protected]> Cc: [email protected] Date: Monday, April 18, 2011, 1:40 AM On 17 April 2011 03:02, Leo Lin <[email protected]> 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 code > should be place in the receive() function, No - that's too early in the processing. It wouldn't be able to distinguish between SET and GET* requests. Maybe if you explained a bit about what you are trying to achieve, then we could advise you how best to proceed. Dave ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ 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