Thanks Tsiyona,
  tried also with 0.0.0.0... no luck. :_(

Dott. Ing. Marco Bresciani
Alcatel-Lucent Italia SpA
Sw Craft Terminal & N.M. Sys. Specialist
OPTD - Wireless transmission WT
Research and Development
via Trento 30, Vimercate, Italy, 20059
EMail: marco.bresci...@alcatel-lucent.com
Phone: +39 039 686 6279
Fax: +39 039 686 5600



________________________________
From: Tsiyona [mailto:tsiy...@gmail.com]
Sent: Wednesday, September 22, 2010 2:49 PM
To: BRESCIANI, MARCO (MARCO)
Subject: Re: [SNMP4J] SnmpRequest usage

Hello Marco,

I had the exact same problem. Wireshark received the traps, but my trap 
listener didn't.
I used someone's suggestion and it helped:
Don't listen on address 151.98.92.112 but on 0.0.0.0.
Snmp agents normally send their traps to port 162, not 161, so check this one 
as well.

So- try 0.0.0.0/161<http://0.0.0.0/161> (or 0.0.0.0/162<http://0.0.0.0/162>).

Good Luck,
Tsiyona

Ah, and by the way - I also work for Alcatel-Lucent!


On Wed, Sep 22, 2010 at 12:27 PM, BRESCIANI, MARCO (MARCO) 
<marco.bresci...@alcatel-lucent.com<mailto:marco.bresci...@alcatel-lucent.com>> 
wrote:
Hello all,
 I'm trying to use the SnmpRequest object in the org.snmp4j.tools.console 
package to listen for TRAPs, to verify a strange behaviour I'm facing with.

While Wireshark detects the TRAPs, SNMP4J does not receive it or anyway does 
not forward the TRAP to my application.
 Since it happens with very few specific TRAPs, I thought to use the 
SnmpRequest to debug the internal behaviour.

I'm using this command line:

java -classpath ./;./snmp4j-1.11.1.jar org.snmp4j.tools.console.SnmpRequest -p 
TRAP -c private -v 2c -d DEBUG -Ol 
udp:151.98.92.112/161<http://151.98.92.112/161>

being 151.98.92.112 my PC address, but I do not see any TRAP, not even the 
"normal" ones when I'm using my application and changing values on the network 
element to generate TRAPs.

Any suggestion?

Thanks,

Dott. Ing. Marco Bresciani
Alcatel-Lucent Italia SpA
Sw Craft Terminal & N.M. Sys. Specialist
OPTD - Wireless transmission WT
Research and Development
via Trento 30, Vimercate, Italy, 20059
EMail: 
marco.bresci...@alcatel-lucent.com<mailto:marco.bresci...@alcatel-lucent.com>
Phone: +39 039 686 6279
Fax: +39 039 686 5600


_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org<mailto:SNMP4J@agentpp.org>
http://lists.agentpp.org/mailman/listinfo/snmp4j

_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to