Writing a custom trap handling daemon

2010-11-22 Thread Tsolakos Stavros
Hi all. I have to write a custom SNMP trap handling service which will listen to traps fired by some devices and generate new traps to a specific target. So far, I have not found any example code about how this can be done. Does any of you know of any similar tutorials? Could somebody provide

RE:SNMP Trap Handling

2009-01-19 Thread Sudhakaran, Sonu (STSD)
When replying, please edit your Subject line so it is more specific than "Re: Contents of Net-snmp-users digest..." Today's Topics: 1. SNMP trap handling (jayesh km) 2. Re: SNMP trap handling (Dave Shield) 3. Re: Table custom handlers (Nikos Balkanas) 4. AW: net

Re: SNMP trap handling

2009-01-15 Thread Dave Shield
2009/1/15 jayesh km : > Can some one please point me how can I get > sarted with this? How to get an application call back when a trap is > received and how to match OID to actual name and extract variables from trap > PDU The simplest approach is probably to start with snmptrapd, and then w

SNMP trap handling

2009-01-15 Thread jayesh km
Hi, I was writing a program to convert SNMP traps to some proprietary trap format. My requirement is to parse the SNMP trap PDU and get the trap and all variables associated with the trap and store it in a structure and pass it to some routine that will generate proprietary traps. I looked into

Re: trap handling

2007-06-13 Thread Dave Shield
On 11/06/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I received this when unplugging the network cable: > Sending 149 bytes to 172.18.50.92 > 2007-06-11 11:46:31 . >06 09 2B 06 01 06 03 01 01 05 04 That's a linkDown trap all right. > If so, can you suggest where to start looking

Re: trap handling

2007-06-06 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I have configured net-snmp this way: > > /etc/snmp/snmpd.conf: > trap2sink 127.0.0.1 public 162 > createUser danielcoelho MD5 "danielcoelho" > rouser danielcoelho > rwuser danielcoelho > agentSecNamedanielcoelho > d

trap handling

2007-05-30 Thread Daniel Coelho
I have configured net-snmp this way: /etc/snmp/snmp.conf: logtimestamp 1 defaultport 161 defversion 2c defcommunity public dodebugging 0 dumppacket 1 printNumericOids true /etc/snmp/snmpd.conf: trapcommunity public trap2sink 127.0.0.1 public 162 authtrapenable 1 syscontact [EMAIL PROTE

Re: trap handling

2007-05-29 Thread Daniel Coelho
I have configured net-snmp this way: /etc/snmp/snmp.conf: logtimestamp 1 defaultport 161 defversion 2c defcommunity public dodebugging 0 dumppacket 1 printNumericOids true /etc/snmp/snmpd.conf: trapcommunity public trap2sink 127.0.0.1 public 162 authtrapenable 1 syscontact [EMAIL PROTE

Re: trap handling

2007-05-29 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I thought I needed the DisMan Event Handling > to receive traps... No. The DisMan Event handling is used to *generate* traps. > I want to send a trap to an IP when it occurs. > For example, when I unplug the network cable, > I want a trap

trap handling

2007-05-29 Thread Daniel Coelho
I thought I needed the DisMan Event Handling to receive traps... I'm a bit confused. Let me explain again my aim. I want to send a trap to an IP when it occurs. For example, when I unplug the network cable, I want a trap to be sent to an IP automaticaly. The same goes for other kinds of traps that

Re: Trap handling

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 12:22 +0530, vishakha s wrote: > I just want some guidance in how to handle Traps and > which file will handle trap . The command 'snmptrapd' is used for handling traps. It's impossible to be more precise without more details about exactly what you want to do. Dave ---

Trap handling

2006-03-01 Thread vishakha s
Hi I just want some guidance in how to handle Traps and which file will handle trap . Thanks Vishakha The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged info

Re: Trap handling

2005-11-10 Thread Thomas Anders
Dave Shield wrote: On Thu, 2005-11-10 at 10:33 +0530, [EMAIL PROTECTED] wrote: We have a requirement to support trap handling in our project. Requirement is whenever a trap is received a function should be called which extracts the community string and performs some operation. Unfortunately

Re: Trap handling

2005-11-10 Thread Dave Shield
On Thu, 2005-11-10 at 10:33 +0530, [EMAIL PROTECTED] wrote: > We have a requirement to support trap handling in our project. > Requirement is whenever a trap is received a function should be called > which extracts the community string and performs some operation. > How

Trap handling

2005-11-09 Thread sushma.sangameswaran
Hi,   We have a requirement to support trap handling in our project.   Requirement is whenever a trap is received a function should be called which extracts the community string and performs some operation.   With were able to do it with scotty(opening  a listener session and binding it

Re: Problem with trap handling

2004-09-09 Thread Dave Shield
> 1) I created a MIB file > > demotraps OBJECT IDENTIFIER ::= { ucdExperimental 990 } > > demo-trap TRAP-TYPE > ENTERPRISE demotraps > ::= 17 > traphandle TRAP-TEST-MIB::demo-trap /home/nba/bin/traps demo-trap I would *strongly* suggest that you define your MIBs using SMIv2 rather than SM