Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2524
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | Chandra Sekhar <chandu.ch29@gmail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Help decoding UDPSocket trap data |
| Date | Fri, 8 Apr 2011 07:10:34 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 30 |
| Message-ID | <5154874387e452bac584ca90c8da7eb9@ruby-forum.com> (permalink) |
| References | <e1e24ab89dc7d789649f7d413eb166ac@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1302264664 92911 65.111.164.187 (8 Apr 2011 12:11:04 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Fri, 8 Apr 2011 12:11:04 +0000 (UTC) |
| In-Reply-To | <e1e24ab89dc7d789649f7d413eb166ac@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 381190 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <5154874387e452bac584ca90c8da7eb9@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:2524 |
Show key headers only | View raw
Hi,
I am new to ruby.
With above example, tried Trap Listener on windows machine. However I
didn' see the traps.
My code given below:
require "rubygems"
require 'snmp'
require 'logger'
m = SNMP::TrapListener.new(:Host => 'myPcIp', :Port => 162) do
|manager|
manager.on_trap_default do |trap|
trap.each_varbind { |v|
puts 'OID: ' + v.name.to_s + ' Value: ' + v.value.to_s
}
end
end
m.join
Can anybody help on this?
Note: My PC runs on windows XP
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Help decoding UDPSocket trap data Chandra Sekhar <chandu.ch29@gmail.com> - 2011-04-08 07:10 -0500 Re: Help decoding UDPSocket trap data Brian Candler <b.candler@pobox.com> - 2011-04-08 08:30 -0500
csiph-web