From: Joao Pompei Date: 2010-05-04T05:32:00+09:00 Subject: Re: Help decoding UDPSocket trap data Hi guys, I know that isn't the thread to ask this, but this is the closest I got after reading the forum for several hours. I am trying to use the trap listener and had no success so far. I have no clue about what is going on here. My code so far: require 'rubygems' require 'snmp' require 'logger' log = Logger.new(STDOUT) m = SNMP::TrapListener.new(:Port => 1062) do |manager| manager.on_trap_default do |trap| trap.each_varbind { |v| puts v.name puts v.value } end end m.join I tried many others codes from the internet and cannot make any progress. I get a "while true" script that shows me nothing. The equipment here is from my company so I am not using any loaded mib (it has a different mib). I tested it with a java traps_listener made with "SNMP4J" (plus wireshark) and the traps are there on port 1062. Jackster or anyone else, do you see the traps coming with this code? thanks -- Posted via http://www.ruby-forum.com/.