Re: Detect SNMP packet

2008-02-11 Thread Dave Shield
On 18/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote: > Now as far as the actual > function definition of the handler function goes is it possible for me to > define it inside a subagent. No. The master agent will have to decide which subagent or MIB module to pass the request off to.

Re: Detect SNMP packet

2008-01-18 Thread Devvrat Tripathi
> > > The simplest approach is probably to insert code into the routine > netsnmp_agent_check_parse() (see 'agent/snmp_agent.c'). > This is called after the request has been received and parsed, > but before it is processed. > > Within this routine, you could extract the context of the request,

Re: Detect SNMP packet

2008-01-18 Thread Dave Shield
On 17/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote: > I would like to get the responses for these pdu's from different snmp agents > located at some other place depending on the context supplied with the pdu. > Now the problem is that i do not know these contexts before hand and also > that

Re: Detect SNMP packet

2008-01-16 Thread Devvrat Tripathi
On Jan 17, 2008 4:12 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > > > What exactly are you actually trying to do? > > I would like to get the responses for these pdu's from different snmp agents located at some other place depending on the context supplied with the pdu. Now the problem is that i d

Re: Detect SNMP packet

2008-01-16 Thread Dave Shield
On 16/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote: > Is there any way to get the PDU's after the packets get processed by the > main agent. Can we do this using a subagent? What exactly are you actually trying to do? Dave --

Re: Detect SNMP packet

2008-01-16 Thread Devvrat Tripathi
On Jan 16, 2008 11:03 PM, Robert Story <[EMAIL PROTECTED]> wrote: > On Sat, 5 Jan 2008 14:04:23 +0530 (IST) Romanch wrote: > R> how to detect an arrival of an SNMP Packet on a system or modify > them... > > Listen for packets on port 161. > Is there any way to get the PDU's after the packets get

Re: Detect SNMP packet

2008-01-16 Thread Robert Story
On Sat, 5 Jan 2008 14:04:23 +0530 (IST) Romanch wrote: R> how to detect an arrival of an SNMP Packet on a system or modify them... Listen for packets on port 161. - This SF.net email is sponsored by: Microsoft Defy all challe

Detect SNMP packet

2008-01-05 Thread Romanch
hello friends, i was making a project which required SNMP. i am a bit novice in this, so if please anybody could help me with: how to detect an arrival of an SNMP Packet on a system or modify them... Thanks, Romanch.. Nobody can go back and start a new beginning, but anyone can start today and