yermej wrote:
> On Jan 16, 10:23 am, jackster the jackle <cont... / thirdorder.net>
> wrote:
>> I copied the basic TrapListener script as follows and am receiving traps
>> puts logger.value
>> log = Logger.new(STDOUT)
>> output from "code one" for instance:
>> ----------------------code three ------------
>>  @value="Interface GigabitEthernet7/12, changed state to down",
>> ---------------------------------------------
>>
>> thanks
>>
>> jackster.mobi
>> --
>> Posted viahttp://www.ruby-forum.com/.
> 
> Sorry, but I'm not seeing much difference between one & two. Where is
> the local variable logger defined? If "log.info trap.inspect" is
> printing the type of data you want, I would think that trap.inspect is
> what you would want to operate on.

if you do:
  puts logger.value

you will see the encoding I'm talking about.

I was able to get some of the specifics out with:
  trap.source_ip
and
  trap.timestamp

if I do:
  trap.value

I get the encoding again.

-- 
Posted via http://www.ruby-forum.com/.