Re: SNMP Trap not working

2017-10-06 Thread Robert Story
On Tue, 8 Aug 2017 20:42:39 + Michael wrote: MS> This is my first time working with SNMP, but after reading the MS> SNMP pages I'm still having trouble getting a simple shell MS> script to run when receiving a trap. Did you resolve this issue? MS> Now it seems that the trap does get logged, b

SNMP Trap generator

2017-08-28 Thread vikrant patel
Hello Sir, I am using snmp to generate trap on some events using monitor and notificationEvent. As per configurations it will generate trap *when expression matches and monitor will not fire again until the condition becomes false and then matches again*. I want to generate traps on some interval

Re: SNMP Trap not working

2017-08-12 Thread Magnus Fromreide
On Tue, Aug 08, 2017 at 08:42:39PM +, Michael Stein wrote: > This is my first time working with SNMP, but after reading the SNMP pages I'm > still having trouble getting a simple shell script to run when receiving a > trap. > > My /etc/snmp/snmptrapd.conf file looks like this: > > # Example

SNMP Trap not working

2017-08-09 Thread Michael Stein
This is my first time working with SNMP, but after reading the SNMP pages I'm still having trouble getting a simple shell script to run when receiving a trap. My /etc/snmp/snmptrapd.conf file looks like this: # Example configuration file for snmptrapd # # No traps are handled by default, you mus

Re: SNMP Trap Receiver

2016-07-25 Thread Niels Baggesen
Den 25-07-2016 kl. 14:57 skrev Krishnaraj: > Dear Coders, > > I am working on a SNMP manager application in linux. I could understand > the mechanism of GET, SET requests from the sample apps. However the > mechanism of TRAP receiver is quite complex. I unable to understand it > and could not find

SNMP Trap Receiver

2016-07-25 Thread Krishnaraj
Dear Coders, I am working on a SNMP manager application in linux. I could understand the mechanism of GET, SET requests from the sample apps. However the mechanism of TRAP receiver is quite complex. I unable to understand it and could not find much references on its working. My idea is to use

Re: Net SNMP Trap

2016-02-23 Thread Niels Baggesen
Den 23-02-2016 kl. 13:37 skrev Anivesh Pandeya: > > How to generate a automated trap for linkup and linkdown for > snmpv2c?? > > OS : RHEL4 Thin Client > SNMP : NET-SNMP- 5.1.2 Any good reason for being stuck with such an outsated system? > SNMPv3 i

Net SNMP Trap

2016-02-23 Thread Anivesh Pandeya
How to generate a automated trap for linkup and linkdown for snmpv2c?? OS : RHEL4 Thin Client SNMP : NET-SNMP- 5.1.2 SNMPv3 is not implemented. I want to monitor the system for traps in case of link up and link down. What is the configurations i need to add in the snmpd.conf files?? I have al

Re: How to capture ipv6 address from a snmp trap

2015-07-13 Thread Robert Story
On Thu, 28 May 2015 18:41:04 +0530 Ajit wrote: AA> I have successfully configured and run snmptrapd to capture AA> snmp v2 and v3 traps. But, the agent_addr field from snmp_pdu AA> doesn't contain ip address in case of ipv6. So, How can I get AA> the ip address ? What release are you using? AA> A

How to capture ipv6 address from a snmp trap

2015-05-28 Thread Ajit Ambekar
Hi, I have successfully configured and run snmptrapd to capture snmp v2 and v3 traps. But, the agent_addr field from snmp_pdu doesn't contain ip address in case of ipv6. So, How can I get the ip address ? Also, is there any way to capture the traps whithout using engine id ?. It gives me "Unknown

Re: Regarding net-snmp trap

2012-12-12 Thread Niels Baggesen
On Wed, Dec 12, 2012 at 06:28:45AM -0500, SureshCilutions S wrote: > I added the below three lines in C:\usr\etc\snmp\snmpd.conf, now I am > receiving traps. > trapsink localhost > trap2sink localhost > informsink localhost You only need one of them, depending on what format you wa

Re: Regarding net-snmp trap

2012-12-12 Thread SureshCilutions S
Niels, Great. I added the below three lines in C:\usr\etc\snmp\snmpd.conf, now I am receiving traps. trapsink localhost trap2sink localhost informsink localhost Thanks for your quick help. -ssmadurai On Wed, Dec 12, 2012 at 12:49 AM, Niels Baggesen wrote: > On Tue, Dec 11, 2012

Re: Regarding net-snmp trap

2012-12-11 Thread Niels Baggesen
On Tue, Dec 11, 2012 at 07:33:07PM -0500, SureshCilutions S wrote: > But somehow the iReasoning is not receiving the > traps[Trap port 162]. Do I need to add anything > in C:\usr\etc\snmp\snmpd.conf? Could anyone help me about how to receive > the trap? You do have a trapsink directive in there, r

Regarding net-snmp trap

2012-12-11 Thread SureshCilutions S
Hi, I am new to net-snmp. I have net-snmp 5.7.2 and iReasoning MIB browser on Windows 7. I am running the snmpd agent(compiled on vc++) which has send_easy_trap(0,0) /*cold start trap*/. Also I have extended the MIB module by adding init_notification()[notification.c] for testing which has send_v2

snmp trap trigger problem...

2012-09-13 Thread Jatin Bodarya
In my Mib2c generated C code I am getting some data from system...I am Usinf for(;;) in "handle" function for updating data..but it is called only after GET or WALK requests fired. What I need is a can call a function continually which is returning a INT value between 1-100...and When the value goe

snmp trap function help

2012-09-02 Thread Jatin Bodarya
Hell all, need help !! Below are my two functions for trap generation... Can anyone tell me how can I pass any external argument to this functions? I want to use some external values that I can send with trap..Help Me.. And can anyone tell me what these two arguements are useful for it ?? -

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Chalapathi Rao
Thanks Dave. Shall try the new version. Appreciated!! -Chalapathi On Wed, 2012-04-04 at 13:37 +0100, Dave Shield wrote: > [ First - *please* don't mail me privately, without copying > any responses to the mailing list. I don't have the time > or inclination to offer private, unpaid

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
On 4 April 2012 14:24, Chalapathi Rao wrote: > Thanks Dave. Shall try the new version. Note that I doubt the Net-SNMP software version is relevant here. I strongly suspect the issue is related to SNMPv3 Informs, rather than filtering of Traps-vs-Informs. Dave ---

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 4 Ap

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
On 4 April 2012 11:55, Chalapathi Rao wrote: > We seem to be having the following issue with our snmpagent > (using Net-SNMP Version:  5.3.2.2). First thing - that's a very old version (and the 5.3.x line is no longer actively supported). Would it be possible to try with something a little newer?

Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Chalapathi Rao
Hello, We seem to be having the following issue with our snmpagent (using Net-SNMP Version: 5.3.2.2). Issue: Traps can be filtered (snmpTargetMIB, snmpNotificationMIB) but INFORMs can't be. But we also see the following in Net-SNMP FAQ contradicting the above behavior. Would be great if we c

Re: SNMP trap not working correctly for 64-bit varbinds

2011-04-04 Thread Dave Shield
On 1 April 2011 21:25, Singh, Vinay wrote: > Any suggestions on how to send trap based upon 64-bit varbinds comparison. Not really, no. The only 64-bit type in SNMP is Counter64, and individual counter values have no meaning. So it doesn't really make sense to make comparisons using them. Dave

RE: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Singh, Vinay
, Vinay Cc: [email protected] Subject: Re: SNMP trap not working correctly for 64-bit varbinds On 1 April 2011 16:40, Singh, Vinay wrote: > #This trap dpes not work correctly ( 64 bit varbinds) - triggers if > the value is 0 > > notificationEvent HaveRMSources6 DISM

Re: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Dave Shield
On 1 April 2011 16:40, Singh, Vinay wrote: > #This trap dpes not work correctly ( 64 bit varbinds) - triggers if the > value is 0 > > notificationEvent HaveRMSources6 DISMAN-EVENT-MIB::mteTriggerFalling -o > TNW-MIB::tnwSourceLbtrmAggNaksRcved > > monitor -e HaveRMSources6 -r 10 RMSource6 > TNW-MI

RE: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Singh, Vinay
: David Chappelle Cc: Singh, Vinay; [email protected] Subject: Re: SNMP trap not working correctly for 64-bit varbinds On Fri, Apr 1, 2011 at 1:23 PM, David Chappelle wrote: I have the same issue and still confused with its appearance. Previously we were running a 4yr old

Re: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Fulko Hew
On Fri, Apr 1, 2011 at 1:23 PM, David Chappelle wrote: > I have the same issue and still confused with its appearance. Previously we > were running a 4yr old version of net-snmp. After recently upgrading to 5.6 > I started getting this error message in /var/log/snmp.log. Was it suppressed > before

RE: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread David Chappelle
fixing the underlying problem? From: Fulko Hew [mailto:[email protected]] Sent: Friday, April 01, 2011 1:13 PM To: Singh, Vinay Cc: [email protected] Subject: Re: SNMP trap not working correctly for 64-bit varbinds On Fri, Apr 1, 2011 at 11:40 AM, Singh, Vinay mailto:vsi

Re: SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Fulko Hew
On Fri, Apr 1, 2011 at 11:40 AM, Singh, Vinay wrote: > Hi, > > I am testing snmpd with subagent. Any trap for 64-bit varbind does > not get delivered to snmptrapd. No Problem with 32-bit varbinds. I get error > in > > snmpd.log > > > > # cat snmpd.log > > registered debug token Disman, 1 > >

SNMP trap not working correctly for 64-bit varbinds

2011-04-01 Thread Singh, Vinay
Hi, I am testing snmpd with subagent. Any trap for 64-bit varbind does not get delivered to snmptrapd. No Problem with 32-bit varbinds. I get error in snmpd.log # cat snmpd.log registered debug token Disman, 1 Turning on AgentX master support. NET-SNMP version 5.6 send_trap: v1 tr

Re: snmp trap reciever sample program

2011-02-14 Thread Manjit
Hi Vamsi, To have a good idea about the trap receiver you can see the file snmptrapd.c in netsnmp/apps directory. This is the file used for snmptrapd. You can get an idea for writing such application. Regards, Manjit Vamsi Krishnam Raju D wrote: > HI Iam the beginner of SNMP and started codi

snmp trap reciever sample program

2011-02-14 Thread Vamsi Krishnam Raju D
HI Iam the beginner of SNMP and started coding using net-snmp C API. I have gone through the tutorials and examples provided by net-snmp and I didnt find any tutorials or sample programs for RECEIVING TRAPS USING C-API. Could u guys send me any sample programs(code) Please. Regards.. Vam

Re: generating snmp trap

2010-03-30 Thread Wes Hardaker
> On Wed, 24 Mar 2010 19:11:15 -0700 (PDT), nathan > said: n> could someone tell me how can I generate and send a trap as a result n> of an extenal triggering event ? You didn't specify where you're trying to do this? Are you trying to do it within the agent? If so, you could look int

generating snmp trap

2010-03-24 Thread nathan
could someone tell me how can I generate and send a trap as a result of an extenal triggering event ? Should I write a simple c program to poll for an event and generate/send trap to a manager ? OR I use snmptrap.will an independent program be able to generate trap by all itself ? thanks

Fwd: help - SNMP Trap manager registration and deregistrationdynamically...

2010-02-10 Thread majid namnabat
-- Forwarded message -- From: majid namnabat Date: Wed, Feb 10, 2010 at 12:49 PM Subject: Re: help - SNMP Trap manager registration and deregistrationdynamically... To: [email protected] I make a mistake. The section to set snmpTargetAddrTDomain was: oid

Re: Receive of snmp Trap

2010-01-06 Thread Dave Shield
2010/1/6 Lv, Bo (EXT-Other - CN/Hangzhou) : > The trap information should be: Trap OID It depends on the trap. Some notifications will just contain the trap OID, with no payload. (e.g. coldStart, warmStart, nsNotifyShutdown). Some notifications will include several varbinds, not just one. (e.g.

RE: Receive of snmp Trap

2010-01-06 Thread Lv, Bo (EXT-Other - CN/Hangzhou)
: Re: Receive of snmp Trap 2010/1/6 Lv, Bo (EXT-Other - CN/Hangzhou) : >the trap message sent from agent seems are the encoded message, Yes > I have to decode the message in my application for the trap information Correct. Use 'snmp_read()' to do this > it seems I ne

Re: Receive of snmp Trap

2010-01-06 Thread Dave Shield
2010/1/6 Lv, Bo (EXT-Other - CN/Hangzhou) : >the trap message sent from agent seems are the encoded message, Yes > I have to decode the message in my application for the trap information Correct. Use 'snmp_read()' to do this > it seems I need to implement the snmptrapd logic agian If you a

Receive of snmp Trap

2010-01-05 Thread Lv, Bo (EXT-Other - CN/Hangzhou)
Hello, I have a need to receive some traps from an agent directly in my application. I know for this to be done, firstly in the agent part, I need to configure the snmpd.conf with statements like trapsink( trap2sink) my app IP addr, port.. In my application, I have opened a socket for this tra

SNMP trap destination.

2009-12-03 Thread Mygapula, Sudheer IN BLR SISL
Hello , Can any body explain how to configure SNMP trap destination (mib and corresponding OID) and also how to use snmp notification MIB. I want to programmatically configure this value. Thanks in advance.. Sudheer

Re: Doubt over on SNMP Trap V3

2009-07-21 Thread Dave Shield
2009/7/15 Sankar : >  I am Sankar. I have installed net-snmp-5.4.2.1-1.win32 in my system and > configured. I want to test SNMP V3 trap receiver. What will i do if i want > to receive SNMP V3 trap? See http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3 > Note : My application will e

Doubt over on SNMP Trap V3

2009-07-16 Thread Sankar
Hi, I am Sankar. I have installed net-snmp-5.4.2.1-1.win32 in my system and configured. I want to test SNMP V3 trap receiver. What will i do if i want to receive SNMP V3 trap? Note : My application will emit SNMP V3 trap on port 162. Thanks and Regards, Sankara Narayanan S. ---

Re: SNMP trap forwarding

2009-06-15 Thread Robert Story
On Sat, 23 May 2009 03:19:40 -0700 (PDT) surya wrote: SP>Using the directive option "forward OID Address" in snmptrapd.conf file, the traps can be forwarded to other machine SP> SP> and using "traphandle" directive, the traps can be processed by an executable. SP> SP>Is there any way

SNMP trap forwarding

2009-05-25 Thread surya prakash
Hi, Using the directive option "forward OID Address" in snmptrapd.conf file, the traps can be forwarded to other machine and using "traphandle" directive, the traps can be processed by an executable. Is there any way to use both processing and forwarding. Yes we can process the tra

Re: snmp trap

2009-02-20 Thread Robert Story
On Thu, 19 Feb 2009 16:12:12 +0800 (CST) lin wrote: LJ> I used the net-snmp version 5.x, and I like to use LJ> the trap that net-snmp supports, ie. caoldstart, LJ> warmstart, linudown, linkup and authenticationfailure. LJ> LJ> Please advise me how to test it. Simple. First you need to configu

snmp trap

2009-02-20 Thread lin john
Hi, I used the net-snmp version 5.x, and I like to use the trap that net-snmp supports, ie. caoldstart, warmstart, linudown, linkup and authenticationfailure. Please advise me how to test it. Thanks John ___ 辣茩妏蚚閉湮⺍講捇誥蚘眊 http://cn.mail.yahoo.com -

Re: SNMP trap message include the GMT offset in the timestamp?

2009-01-27 Thread Dave Shield
2009/1/23 Dey, Rajnish : > Does SNMP v2 trap message include the GMT offset in the timestamp? The timestamp in an SNMPv2 trap is the sysUptime value - i.e. the number of centi-seconds that the agent (or notification generator) has been running. The PDU does not contain a "wall-clock" style timesta

Re: SNMP Trap Configuration in Fedora core 10

2009-01-27 Thread Dave Shield
2009/1/27 Asad Kazmi : > I want to recieve incoming traps on linux and log them in mysql , just > need help how to configure snmptrapd.conf , i configured the dslam to > send traps but dont know how to config snmptrap configuration file in > fedora. i am new to snmp. I suggest you

Re: SNMP Trap Configuration in Fedora core 10

2009-01-27 Thread Asad Kazmi
: > 2009/1/27 Asad Kazmi : > > can some one help me to configure snmp trap in fedora, my file is empty > > with no configuration and i need some hints to configure it. > > What do you want to do? > > Dave ---

Re: SNMP Trap Configuration in Fedora core 10

2009-01-27 Thread Dave Shield
2009/1/27 Asad Kazmi : > can some one help me to configure snmp trap in fedora, my file is empty > with no configuration and i need some hints to configure it. What do you want to do? Dave -- This SF.net em

SNMP Trap Configuration in Fedora core 10

2009-01-26 Thread Asad Kazmi
hi all, can some one help me to configure snmp trap in fedora, my file is empty with no configuration and i need some hints to configure it. thanks Asad Kazmi -- This SF.net email is sponsored by: SourcForge Community

SNMP trap message include the GMT offset in the timestamp?

2009-01-23 Thread Dey, Rajnish
Hi All, Does SNMP v2 trap message include the GMT offset in the timestamp? Thanks and Regards, Rajnish -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.

snmp trap v2

2008-05-28 Thread vladimir zherdenovsky
Hello, could you please send an example of the perl code of sending snmp trap v2? Thanks, Vladimir - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http

RE: SNMP Trap LF in DisplayString

2008-03-31 Thread Larry Low
ith my custom EXECUTE_FORMAT for now. Larry Low -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Low Sent: Monday, March 31, 2008 10:38 AM To: [EMAIL PROTECTED] Subject: RE: SNMP Trap LF in DisplayString I've been trying to do this in configuration

FW: SNMP Trap LF in DisplayString

2008-03-25 Thread Larry Low
lto:[EMAIL PROTECTED] On Behalf Of Larry Low Sent: Monday, March 24, 2008 6:25 PM To: [EMAIL PROTECTED] Subject: SNMP Trap LF in DisplayString snmptrapd will separate out variable bindings with LF when used. The problem is that DisplayString can have CR LF, CR, and CR NUL. Since CR anything else

Re: snmp trap not working.

2008-03-18 Thread Dave Shield
On 18/03/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > I have generated SNMP trap code using mib2c.notify.conf file. > Generated code compiled perfectly and executing perfectly but it is not > sending trap I don't Understood why? Because you are using an

snmp trap not working.

2008-03-18 Thread Siva Prakash Reddy G
Hi! I have generated SNMP trap code using mib2c.notify.conf file. Generated code compiled perfectly and executing perfectly but it is not sending trap I don't Understood why?. I have shown sample code below, please go thru it and help me out where I'm d

Re: Querry/ Snmp Trap Receiver/Error

2007-03-30 Thread Joao Miguel Ferreira
On Fri, 2007-03-30 at 18:05 +0530, truptisankar nayak wrote: > Hi Friends, > > I am trying to make my own trap receiver program by modifying net-snmp > source code. > Its receiving traps when I am sending traps from my own PC(another > terminal , I am using fedora Linux), does not receive when

Querry/ Snmp Trap Receiver/Error

2007-03-30 Thread truptisankar nayak
Hi Friends, I am trying to make my own trap receiver program by modifying net-snmp source code. Its receiving traps when I am sending traps from my own PC(another terminal , I am using fedora Linux), does not receive when trap sent from other machines. Anybody have the idea where I need to

Re: How to send SNMP trap for authentication failure and interface up and down

2005-11-07 Thread Wes Hardaker
> On Mon, 7 Nov 2005 04:36:58 -0800 (PST), md salauddin <[EMAIL PROTECTED]> > said: md> Iam using ucd-snmp 4.2.6 .I would like to send trap message from md> my device to manger whenever one of my interfaces goes down or md> comes up or even for authentication failure. What is the exact md

Re: How to send SNMP trap for authentication failure and interface up and down

2005-11-07 Thread Dave Shield
On Mon, 2005-11-07 at 04:36 -0800, md salauddin wrote: > I am using ucd-snmp 4.2.6 .I would like to send trap message from my > device to manger whenever one of my interfaces goes down or comes up > or even for authentication failure. What is the exact procedure to > send trap for the above situati

How to send SNMP trap for authentication failure and interface up and down

2005-11-07 Thread md salauddin
Hi Iam using ucd-snmp 4.2.6 .I would like to send trap message from my device to manger whenever one of my interfaces goes down or comes up or even for authentication failure. What is the exact procedure to send trap for the above situations. Kindly help me in this regard. Thanks in advance.   -S

Re: SNMP Trap PDU ASN1 conversion helppppppp :)

2005-09-27 Thread Wes Hardaker
> On Tue, 27 Sep 2005 15:19:58 +0300, Asim Zaka <[EMAIL PROTECTED]> said: Asim> Do I have to write the ASN1 conversion functions for Asim> ucd-snmp(net-snmp) myself or do u think i can do it using an Asim> ucd-snmp API for the conversions? is there a library to do that? Asim> has anyone used t

SNMP Trap PDU ASN1 conversion helppppppp :)

2005-09-27 Thread Asim Zaka
Hi everyone, I need to for the snmp trap pdu and put the following in ASN1 format: snmp version (ASN1 interger) community(ASN1 OCTET STR) object ID(ASN1 OID) Enterprise ID(ASN1 IPADDRESS) Agent IP(ASN1 ) Generic Trap(ASN1 INTEGER) Spwecific Trap(ASN1 INTEGER) Time stamp(ASN1 TIMETICKS) Do I

SNMP Trap Forwarding.

2005-09-02 Thread Poojan Tanna
Hi, I am looking for a utility that can sit between the SNMP Trap Generator and SNMP Trap Server as follows: This utility should forward the Traps as per the Trap Type

Re: regarding snmp trap PDU

2005-08-09 Thread Robert Story
On Thu, 28 Jul 2005 06:33:38 -0700 (PDT) jigar wrote: JC> Thanks for your suggestion. And sorry to intrupt you again. But I JC> am not understanding your one line that I am mentioning below: JC> " define a suitable MIB notification for the error events that you're JC> interested in." JC>

Re: Re: regarding snmp trap PDU

2005-07-28 Thread jigar contractor
Hi Dave,       Thanks for your suggestion. And sorry to intrupt you again. But I am not understanding your one line that I am mentioning below:   " define a suitable MIB notification for the error events that you're interested in."   I don't have any idea about MIB notification. If you can just

Re: regarding snmp trap PDU

2005-07-28 Thread Dave Shield
On Thu, 2005-07-28 at 05:37 -0700, jigar contractor wrote: > That I know but I want to send some description of error messages > along with snmp trap pdu. Is it possible to send such type of error > description with snmp trap ? Sure. Define a suitable MIB object, and append this varbi

regarding snmp trap PDU

2005-07-28 Thread jigar contractor
Hi,    That I know but I want to send some description of error messages along with snmp trap pdu. Is it possible to send such type of error descrption with snmp trap ? How NMS will identify that this is the error snmp trap pdu ?     Jigar. Dave Shield <[EMAIL PROTECTED]> wrote: On Thu

Re: regarding snmp trap PDU

2005-07-28 Thread Dave Shield
On Thu, 2005-07-28 at 05:22 -0700, jigar contractor wrote: > I want to send some of information along with snmp trap command to the > trap listener. How would I add description to snmp trap PDU so that I > can send it to trap listener. By adding one or more varbinds to the end of the

regarding snmp trap PDU

2005-07-28 Thread jigar contractor
Hi,       I want to send some of information along with snmp trap command to the trap listener. How would I add description to snmp trap PDU so that I can send it to trap listener.  Or if this is not possible kindly send me alternate solution for the same...   Jigar

Re: SNMP Trap Forwarder for net-snmp

2005-07-25 Thread Robert Story
On Sun, 24 Jul 2005 13:50:37 +0530 Vineet wrote: VKG> I have been working on a utility which could work as SNMP trap forwarder VKG> as a part of net-snmp package. Independent of snmptrapd? Did you know that snmptrapd already has the capability of forwarding traps? VKG> Please let me kno

SNMP Trap Forwarder for net-snmp

2005-07-25 Thread Vineet Kumar Garg
Hi I have been working on a utility which could work as SNMP trap forwarder as a part of net-snmp package.Please let me know how can i submit the utility and any other information pertaining to the case. Thanks & Regards VINEET GARG Software Engineer Product Engineering Mob :09886674133 P

Re: Setting the sender address in outgoing SNMP trap packets

2005-05-18 Thread Shobana Sampath
Hi, I implemented this code: in_addr_t *addr; > addr = (in_addr_t *)pdu->agent_addr; >*addr = parse_address( "10.86.160.102" ); > I also added this code: cp = asn_build_string(cp, pkt_len, (u_char) (ASN_IPADDRESS | ASN_PRIMITIVE),

Re: Setting the sender address in outgoing SNMP trap packets

2005-05-13 Thread Shobana Sampath
On an ethereal trace after doing what is described below, I had to also add this code because I noticed that snmp_pdu_build does not add the agent_addr for v2c traps cp = asn_build_string(cp, pkt_len, (u_char) (ASN_IPADDRESS | ASN_PRIMITIVE), (u

Re: Setting the sender address in outgoing SNMP trap packets

2005-05-13 Thread Shobana Sampath
Setting the trap-source-address as described below, I do not see that in the PDU dump. I am running Ethereal and that does not show the trap-source-address either. Thanks. /Shobana --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Mon, 2005-04-25 at 16:38, Shobana Sampath wrote: > > I tried to add a

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-29 Thread Dave Shield
On Mon, 2005-04-25 at 16:38, Shobana Sampath wrote: > I tried to add a varbind to set the snmpTrapAddress, > but no luck, the resulting pdu does not have the > agent_address set as they say in the RFC: No - you're not mean to add a varbind to do this. You are meant to assign a suitable address to

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-25 Thread Shobana Sampath
> > Well, SNMPv2 traps don't have the same structure as > v1 > traps, so there isn't an 'agent_addr' header field > at all. > Inserting one would immediately break every SNMP > trap > handler on the planet! > > Instead, SNMPv2 traps indicate the address

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-22 Thread Dave Shield
ne would immediately break every SNMP trap handler on the planet! Instead, SNMPv2 traps indicate the address of the trap generator by means of an additional 'snmpTrapAddress.0' varbind, appended to the main varbind list. See RFC 3584 for details. Dave ---

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-21 Thread Shobana Sampath
If I do not set the value myself, I am unable to see the value added by build_snmp_pdu call. The documentation says this agent_addr is for v1 traps and since I send out v2c traps, is it possible it is ignoring this value. Thanks. /Shobana --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Mon, 2005-0

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-19 Thread Dave Shield
On Mon, 2005-04-18 at 15:55, Shobana Sampath wrote: > When I try to set the agent-addr using the code below, > I get the following error: > I use the following code to add the agent-addr: > cp = asn_build_string(cp, out_length, > (u_char) (ASN_IPADDRESS | > ASN_PRIMITIVE), >

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-18 Thread Shobana Sampath
re, what is the > > > > field that I can use in snmp v2c to set the > > > > sender's address in outgoing SNMP packets. > > Oops. > I've just spotted that you're talking about SNMP > *trap* packets, rather than more general requests. >

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-14 Thread Robert Story
On Thu, 14 Apr 2005 09:32:05 +0100 Dave wrote: DS> On Wed, 2005-04-13 at 18:59, Shobana Sampath wrote: DS> > > > In the netsnmp_pdu data structure, what is the DS> > > > field that I can use in snmp v2c to set the DS> > > > sender's address in outgoing SNMP packets. DS> DS> In this particular cas

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-14 Thread Dave Shield
On Wed, 2005-04-13 at 18:59, Shobana Sampath wrote: > > > In the netsnmp_pdu data structure, what is the > > > field that I can use in snmp v2c to set the > > > sender's address in outgoing SNMP packets. Oops. I've just spotted that you're talking a

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-13 Thread Shobana Sampath
Hi, Thanks for your reply. Even if I set this value, how will I ensure that this value goes out with the outgoing trap PDU? Thanks. /Shobana --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Fri, 2005-04-08 at 20:44, Shobana Sampath wrote: > > In the netsnmp_pdu data structure, what is the > field

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-11 Thread Dave Shield
On Fri, 2005-04-08 at 20:44, Shobana Sampath wrote: > In the netsnmp_pdu data structure, what is the field > that I can use in snmp v2c to set the sender's address > in outgoing SNMP packets. There isn't one. You can do this via the 'snmp.conf' file, using the directive "clientaddr", or in code

Setting the sender address in outgoing SNMP trap packets

2005-04-08 Thread Shobana Sampath
Hi, In the netsnmp_pdu data structure, what is the field that I can use in snmp v2c to set the sender's address in outgoing SNMP packets. Thanks. /Shobana __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.m

Re: SNMP trap

2005-01-26 Thread Wes Hardaker
> On Tue, 25 Jan 2005 09:21:52 +0530, Sanjib Nath <[EMAIL PROTECTED]> said: Sanjib> Now, I need to add an entry in snmpd.conf file "trap2sink Sanjib> HOST" to receive the trap by the HOST. Is there any SNMP Sanjib> object to add destination HOST entry (e.g. trap2sink IP>) to snmpd.conf file?

Re: SNMP trap

2005-01-24 Thread Sanjib Nath
Hi Robert, I am able to define my own trap for alert notification and it's working fine! Thanks for your help. Now, I need to add an entry in snmpd.conf file "trap2sink HOST" to receive the trap by the HOST. Is there any SNMP object to add destination HOST entry (e.g. trap2sink ) to snmpd.conf

Re: SNMP trap

2005-01-11 Thread Coders
On Mon, 10 Jan 2005 13:02:13 + (GMT) Mayuresh wrote: MD> MD> If I send a vendor specific v2 trap using snmptrap utility then can I MD> receive this trap on windows machine? If yes where will I see the received MD> trap (notification) ? If you have a trap receive installed, yes. And where it

Re: SNMP trap

2005-01-10 Thread Mayuresh Dhagamwar
Hello,     If I send a vendor specific v2 trap using snmptrap utility then can I receive this trap on windows machine? If yes where will I see the received trap (notification) ?   Thanks and regards, -Mayuresh.     ALL-NEW Yahoo! Messenger - all new features - even more fun!

Re: SNMP trap

2005-01-06 Thread Coders
On Thu, 06 Jan 2005 19:12:52 +0530 Sanjib wrote: SN> Is there any specific trap (e.g. authenticationFailure) which can serve SN> my purpose? That really depends on the alert type. You can poke about in the mibs directory to see if any exiting trap/notifications seem appropriate for your alert typ

Re: SNMP trap

2005-01-06 Thread Sanjib Nath
e entries are created in alert table. SN> SN> Is it possible to that using SNMP trap? Could you please let me know how SN> to configure snmptrap to get notification? Who creates the rows in the table? What kind of table is it? The traps will go to the trapsinks configured in your sn

Re: SNMP trap

2005-01-05 Thread Coders
On Wed, 05 Jan 2005 16:59:39 +0530 Sanjib wrote: SN> I have an alert module and objects in alert table are created depending SN> on some predefined conditions. Now I want to get notification when one SN> or more entries are created in alert table. SN> SN> Is it possible to that

SNMP trap

2005-01-05 Thread Sanjib Nath
Hi, I have an alert module and objects in alert table are created depending on some predefined conditions. Now I want to get notification when one or more entries are created in alert table. Is it possible to that using SNMP trap? Could you please let me know how to configure snmptrap to get

Re: set different snmp trap port?

2004-11-20 Thread Coders
On Fri, 19 Nov 2004 10:24:40 +0800 Goh, wrote: GYM> May I know how can we change our trap listener port for net-snmp? I believe it can be changed on the command line. Eg 'snmptrapd udp:1162' will listen on port 1162 GYM> FYI, I have 2 agent machines which will point to a sa

set different snmp trap port?

2004-11-19 Thread Goh, Yen Mei
Hi, Very appreciate your answer. Thank you very much. May I know how can we change our trap listener port for net-snmp? FYI, I have 2 agent machines which will point to a same snmp trap listener machine, but if both of them are having the same port, then the message will be all combined together

RE: SNMP Trap Decode

2004-09-22 Thread Will Chen
Hello Helper,   When I am coding with incoming SNMP traps from SNMP agent which uses net-snmp SNMP package, I met a problem.  What I want to do is printing out all the bindings for incoming SNMP traps from the agent side, just like the information logged in snmptrap.log if

Re: SNMP Trap/Inform security question

2004-08-24 Thread Dave Shield
> Does anybody know if there are any kind of authentication built into the > SNMP trap/informs? With SNMPv1 or SNMPv2c - no. With SNMPv3 - yes. Have a look at http://www.net-snmp.org/tutorial-5/commands/snmptrap-v3.html Dave ---

SNMP Trap/Inform security question

2004-08-24 Thread Zou, Yixiong
Hi, I am working on a management platform using SNMP. SNMP trap is a vital part of this system because it notifies me all the events. In the mean time, I am worried that what if my LAN is not secure and someone forges these events? That would be devastating for the system. Does anybody