[SNMP4J] SnmpRequest usage

BRESCIANI, MARCO (MARCO) marco.bresciani at alcatel-lucent.com
Wed Sep 22 12:27:31 CEST 2010


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

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.Bresciani at alcatel-lucent.com
Phone: +39 039 686 6279
Fax: +39 039 686 5600




More information about the SNMP4J mailing list