> {quote:title=Remy Lebeau (TeamB) wrote:}{quote} > "Pierre Dupr__s" <=?Utf-8?Q?Pierre_Dupr=C3=A8s?=> wrote in message > news:✉forums.embarcadero.com... > > > Well, I would really be very interested in knowing how > > you have managed to succefully receive traps with the > > idsnmp.receivetrap function ! > > He showed you exactly how he is doing it. >
> > Impossible for my part, with delphi7, windows XP > > and TIdSNMP component ! > > Did you upgrade to a newer Indy version yet? > *I didn't know there was an upgrade for tIdSnmp component, is it mandatory, is there a bug in one of the indy version (such as mine ?)* >
> > Note that the short code you've wrotten can't > > work as you don't use the idsnmp.create constructor... > > Obviously, when he posted is just a snippet of larger code and not meant to > be compiled as-is. > *=> you said yourself just above : "He showed you exactly how he is doing it." so know you seem to say it's not exactly the case.* ;-) > >
> > NB : idsnmp works for getting snmp informations, I do it > > well, it's only receiving traps that really doesn't seem to work... > > Like I said earlier, TIdSNMP only supports SNMP v1 at this time. Are you > receiving v1 traps to begin with? > *=> I have read what you wrote, and I do effectively receive v1 SNMP traps.* >
> > NB2 : I show you the way I'm trying to do it (I've used a timer and > > udp port is 162, and wireshark shows traps are well arriving on the > > port...) > > Please provide the actual Wireshark capture. > > *=> will be possible only on monday at my office.*
> > but receivetrap always returns 0...: > > Then either TIdSNMP is not receiving any data at all, or it is timing out. > *=> traps are arriving each 10 seconds continuously, and my program launches receivetrap each 3 seconds (i've tried other duration the result is always the same).* >
> -- > Remy Lebeau (TeamB)
Edited by: Pierre Dupr__s on Aug 14, 2010 1:38 AM