<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ruby SNMP CIM in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104857#M22090</link>
    <description>&lt;P&gt;Greetz,&lt;/P&gt;

&lt;P&gt;I know almost nothing about Ruby, could someone maybe assist by advising how to print the below&lt;BR /&gt;
fields but for each value in each column concatenate the value with the CIM field (loosely named for now), like interface="ifDescr" in="ifInOctets" out="ifOutOctets"?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;H1&gt;!/usr/bin/ruby&lt;/H1&gt;

&lt;P&gt;require 'rubygems'&lt;BR /&gt;
require 'snmp'&lt;/P&gt;

&lt;P&gt;ifTable_columns = ["ifDescr", "ifInOctets", "ifOutOctets"]&lt;BR /&gt;
SNMP::Manager.open(:host =&amp;gt; '10.0.0.10', :community =&amp;gt; 'public') do |manager|&lt;BR /&gt;
    manager.walk(ifTable_columns) do |row|&lt;BR /&gt;
        row.each { |vb| print "\s#{vb.value}" }&lt;BR /&gt;
        puts&lt;BR /&gt;
    end&lt;BR /&gt;
end&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:12:29 GMT</pubDate>
    <dc:creator>ephemeric</dc:creator>
    <dc:date>2020-09-28T13:12:29Z</dc:date>
    <item>
      <title>Ruby SNMP CIM</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104857#M22090</link>
      <description>&lt;P&gt;Greetz,&lt;/P&gt;

&lt;P&gt;I know almost nothing about Ruby, could someone maybe assist by advising how to print the below&lt;BR /&gt;
fields but for each value in each column concatenate the value with the CIM field (loosely named for now), like interface="ifDescr" in="ifInOctets" out="ifOutOctets"?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;H1&gt;!/usr/bin/ruby&lt;/H1&gt;

&lt;P&gt;require 'rubygems'&lt;BR /&gt;
require 'snmp'&lt;/P&gt;

&lt;P&gt;ifTable_columns = ["ifDescr", "ifInOctets", "ifOutOctets"]&lt;BR /&gt;
SNMP::Manager.open(:host =&amp;gt; '10.0.0.10', :community =&amp;gt; 'public') do |manager|&lt;BR /&gt;
    manager.walk(ifTable_columns) do |row|&lt;BR /&gt;
        row.each { |vb| print "\s#{vb.value}" }&lt;BR /&gt;
        puts&lt;BR /&gt;
    end&lt;BR /&gt;
end&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104857#M22090</guid>
      <dc:creator>ephemeric</dc:creator>
      <dc:date>2020-09-28T13:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby SNMP CIM</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104858#M22091</link>
      <description>&lt;P&gt;Hi - If you are new to ruby, our upcoming Ruby SDK release might be able to help you interface with Splunk.  We can give you pre-release access now.  Just send your GitHub ID to:  &lt;A href="mailto:devinfo@splunk.com"&gt;devinfo@splunk.com&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 23:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104858#M22091</guid>
      <dc:creator>psanford_splunk</dc:creator>
      <dc:date>2013-01-30T23:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby SNMP CIM</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104859#M22092</link>
      <description>&lt;P&gt;Wow! Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 10:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104859#M22092</guid>
      <dc:creator>ephemeric</dc:creator>
      <dc:date>2013-01-31T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby SNMP CIM</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104860#M22093</link>
      <description>&lt;H1&gt;!/usr/bin/ruby&lt;/H1&gt;

&lt;P&gt;require 'rubygems'&lt;BR /&gt;
require 'snmp'&lt;/P&gt;

&lt;P&gt;SNMP::Manager.open(:host =&amp;gt; '10.0.0.10', :community =&amp;gt; 'public') do |manager|&lt;BR /&gt;
  manager.walk(["ifDescr", "ifInOctets", "ifOutOctets"]) do |descr, inoctets, outoctets|&lt;BR /&gt;
    puts "src_int=#{descr.value} bytes_in=#{inoctets.value} bytes_out=#{outoctets.value}"&lt;BR /&gt;
  end&lt;BR /&gt;
end&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104860#M22093</guid>
      <dc:creator>ephemeric</dc:creator>
      <dc:date>2020-09-28T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby SNMP CIM</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104861#M22094</link>
      <description>&lt;P&gt;I see you figured it out, but the Ruby SDK for Splunk wouldn't be much help here. It's a core Ruby question, and not really something involving Splunk. There are a lot more Rubyists actively answering questions on Stackoverflow, so you'll probably get faster responses there.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 20:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ruby-SNMP-CIM/m-p/104861#M22094</guid>
      <dc:creator>fross_splunk</dc:creator>
      <dc:date>2013-02-05T20:56:21Z</dc:date>
    </item>
  </channel>
</rss>

