Decrypting an SNMP PDU off the wire

2010-03-08 Thread Shehzad Qureshi
Hi, I'm writing a small application that takes an Ethernet frame (straight from the kernel) and parses the SNMP data included within against a set of rules to determine if the packet should be forwarded or dropped. The application is for a small embedded gateway that sits between the agent and clie

RE: Defining MIB

2010-03-08 Thread Dominique bastien
A god book for this is "Understanding SNMP MIBs" ISBN 0-13-437708-7 I personally found a lot of explanations and the nested table example. --- On Mon, 3/8/10, Prakash wrote: > From: Prakash > Subject: RE: Defining MIB > To: "'Robert Story'" > Cc: [email protected] > Rec

RE: Defining MIB

2010-03-08 Thread Prakash
Can you please give an example... -Original Message- From: Robert Story [mailto:[email protected]] Sent: Monday, March 08, 2010 8:57 PM To: PrakashRaju Meka Cc: [email protected]; 'Fulko Hew' Subject: Re: Defining MIB On Mon, 8 Mar 2010 16:54:01 +0530 Prakash wrote

Re: Defining MIB

2010-03-08 Thread Robert Story
On Mon, 8 Mar 2010 16:54:01 +0530 Prakash wrote: P> Is SNMP support nested tables? No, but you can use the index of one table as the first of 2 or more indexes in the second table, which sort of approximates nested tables. --

Re: sending trap

2010-03-08 Thread maxim maxim
Hi Dave, Can you describe in details the second option with SNMP SET requests. Thanks, Maxim 2010/3/8 Dave Shield : > On 7 March 2010 16:18, maxim maxim wrote: >> Whether does exist net-snmp api for sending trap from sub agent, where >> i can to add a destination ip address and port? > > No. > >

Fwd: sending trap

2010-03-08 Thread maxim maxim
Thanks to all, Can i use functions like in snmptrap.c for sending traps, and what are the differences , that i need to do for sending trap from the subagent? Maxim 2010/3/8 Dave Shield : > On 8 March 2010 10:41, Alexander King wrote: >> YES > > Short, to the point, and wrong. > > > >> is it rig

RE: Defining MIB

2010-03-08 Thread Prakash
Thank you to all, When we use OBJECT-GROUP ?. Is SNMP support nested tables? From: Fulko Hew [mailto:[email protected]] Sent: Friday, March 05, 2010 7:42 PM To: [email protected] Subject: Re: Defining MIB On Fri, Mar 5, 2010 at 8:58 AM, Dave Shield wrote: On

Re: sending trap

2010-03-08 Thread Dave Shield
On 7 March 2010 16:18, maxim maxim wrote: > Whether does exist net-snmp api for sending trap from sub agent, where > i can to add a destination ip address and port? No. The agent trap APIs do *not* specify the destination for the notification. As fas as a subagent is concerned, all traps are pa