<?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 Re: Converting MIB to Python module and creating the EGG. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92583#M6249</link>
    <description>&lt;P&gt;I am using the 1.06beta on windows and get this error message when dropping the .py converted mib into the mibs subfolder:&lt;/P&gt;

&lt;P&gt;pysnmp.smi.error.SmiError: MIB file "WWP-TRAFFIC-PROFILE-MIB.py[co]" not found in search path&lt;/P&gt;

&lt;P&gt;Did I miss a step?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2013 16:07:08 GMT</pubDate>
    <dc:creator>pmeyerson</dc:creator>
    <dc:date>2013-09-10T16:07:08Z</dc:date>
    <item>
      <title>Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92575#M6241</link>
      <description>&lt;P&gt;Can anyone provide more detailed steps? I have a plain text MIB file, PowerNet-MIB.mib. I converted it to PowerNet-MIB.py, using the command: build-pysnmp-mib -o PowerNet-MIB.py PowerNet-MIB.mib.  Then I created a python EGG after scouring over the internet. I can't post the link to the site because I don't have enough Karma to include links. But if you include http and www on the front of this:&lt;/P&gt;

&lt;P&gt;blog.pythonlibrary.org/2012/07/12/python-101-easy_install-or-how-to-create-eggs/&lt;/P&gt;

&lt;P&gt;One thing to note, I had to follow directions to create a package, by creating an empty &lt;STRONG&gt;init&lt;/STRONG&gt;.py. Without this file in the directory structure; the EGG did not include my PowerNet-MIB.py. Now I have an EGG and inside of that EGG SOURCES.txt lists: PowerNet-MIB/PowerNet-MIB.py. When I drop the EGG ini /snmp_ta/bin, and then try to use PowerNet-MIB for MIB names in the modular input. I get the following errors in Splunkd.log.&lt;/P&gt;

&lt;P&gt;ERROR ExecProcessor - message from "python /Applications/splunk/etc/apps/snmp_ta/bin/snmp.py" pysnmp.smi.error.SmiError: MIB file "PowerNet-MIB.py[co]" not found in search path&lt;/P&gt;

&lt;P&gt;Help? I have been looking at this off and on for a week. Is it possible that we can just drop PowerNet-MIB.py files into this app in the future? How am I packaging this up wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92575#M6241</guid>
      <dc:creator>mikesaia</dc:creator>
      <dc:date>2013-07-11T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92576#M6242</link>
      <description>&lt;P&gt;You should drop the egg into &lt;STRONG&gt;snmp_ta/bin/mibs&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I might add a non egg option in the next release so you can just add a folder into the mibs dropin directory.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2013 02:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92576#M6242</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-13T02:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92577#M6243</link>
      <description>&lt;P&gt;Thanks for the reply Damien. I dropped the egg in that directory and thats the error I'm getting. Am I packaging the egg up wrong? Do I need to use a specific version of Python?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2013 13:27:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92577#M6243</guid>
      <dc:creator>mikesaia</dc:creator>
      <dc:date>2013-07-15T13:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92578#M6244</link>
      <description>&lt;P&gt;Look at the structure of pysnmp_mibs-0.1.4-py2.7.egg that ships with the SNMP Mod Input.&lt;/P&gt;

&lt;P&gt;FYI : going to release a new verison this week that supports plain py files , no need to egg up.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2013 15:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92578#M6244</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-15T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92579#M6245</link>
      <description>&lt;P&gt;OK , I just uploaded a new release , 1.0.5beta.&lt;/P&gt;

&lt;P&gt;You can now drop the python files directly in the bin/mibs directory without needing to egg them up.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2013 19:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92579#M6245</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-15T19:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92580#M6246</link>
      <description>&lt;P&gt;Saw that just now. I'm going to try it out. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2013 21:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92580#M6246</guid>
      <dc:creator>mikesaia</dc:creator>
      <dc:date>2013-07-15T21:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92581#M6247</link>
      <description>&lt;P&gt;My custom MIB works now. Events don't show up anymore descriptive however than this: PowerNet-MIB:.318.1.2.xxxx whatever the mib is. And I've noticed that as well with the standard mibs, they look like this SNMPv2-SMI::enterprises."705.1.5.2.0" = "100" or something. Am I understanding this correctly that the field would then need to be extracted with a regex in props, and you would just use "SNMPv2-SMI::enterprises."705.1.5.2.0"" as the field, and rename it something human readable?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 17:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92581#M6247</guid>
      <dc:creator>mikesaia</dc:creator>
      <dc:date>2013-07-16T17:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92582#M6248</link>
      <description>&lt;P&gt;The SNMP Modular Input comes with field extractions for the default "snmp_ta" sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 21:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92582#M6248</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-19T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92583#M6249</link>
      <description>&lt;P&gt;I am using the 1.06beta on windows and get this error message when dropping the .py converted mib into the mibs subfolder:&lt;/P&gt;

&lt;P&gt;pysnmp.smi.error.SmiError: MIB file "WWP-TRAFFIC-PROFILE-MIB.py[co]" not found in search path&lt;/P&gt;

&lt;P&gt;Did I miss a step?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 16:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92583#M6249</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2013-09-10T16:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MIB to Python module and creating the EGG.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92584#M6250</link>
      <description>&lt;P&gt;Hi @mikesaia, were you able to make your customized MIB work? If yes, could you share with me the steps you had take to map your data to the MIB. Thank you. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Converting-MIB-to-Python-module-and-creating-the-EGG/m-p/92584#M6250</guid>
      <dc:creator>jaracan</dc:creator>
      <dc:date>2017-10-19T08:26:51Z</dc:date>
    </item>
  </channel>
</rss>

