<?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: SNMP Modular Input: Why am I getting error &amp;quot;cannot locate module ./saatrap.mib'&amp;quot; trying to convert an MIB file to Python? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283648#M33682</link>
    <description>&lt;P&gt;Thanks for your input Damien, the conversion works now, but after copying the mib to snmp_ta/bin/mibs/ I am still getting the below error:&lt;BR /&gt;
&lt;CODE&gt;Exception resolving MIB name in the caught trap NoSuchObjectError({'str': 'No MIB registered that defines 1.3.6.1.4.1.18494.2.1.9 object, closest known parent is 1.3.6.1.4.1 (SNMPv2-SMI::enterprises)'})&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Noting that by browsing the MIB file you could find the referenced object in it.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2016 07:17:30 GMT</pubDate>
    <dc:creator>ramighebral</dc:creator>
    <dc:date>2016-08-10T07:17:30Z</dc:date>
    <item>
      <title>SNMP Modular Input: Why am I getting error "cannot locate module ./saatrap.mib'" trying to convert an MIB file to Python?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283646#M33680</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am having trouble converting a MIB file to Oython as required by the SNMP Modular Input add-on, all mib dependencies have been downloaded and placed under the directory defined in $HOME/.smirc.&lt;BR /&gt;
The error is the below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;smidump -f python -k ./saatrap.mib
./saatrap.mib:1: syntax error, unexpected identifier, expecting moduleKeyword or submoduleKeyword
smidump: cannot locate module ./saatrap.mib'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anybody have an idea what's going on here?&lt;/P&gt;

&lt;P&gt;MIB file can be found here:&lt;BR /&gt;
&lt;A href="http://pastebin.com/download/Pj0CVCWN"&gt;http://pastebin.com/download/Pj0CVCWN&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Rami&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 06:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283646#M33680</guid>
      <dc:creator>ramighebral</dc:creator>
      <dc:date>2016-06-08T06:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Modular Input: Why am I getting error "cannot locate module ./saatrap.mib'" trying to convert an MIB file to Python?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283647#M33681</link>
      <description>&lt;P&gt;The Mib file in your link appears to have errors ie: the name of mib (saatrap) in line 1 should not be lowercase.&lt;/P&gt;

&lt;P&gt;So I changed that , and voila , progress. Note : you can also use the program "smilint" to check your Mib files.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SAA-TRAP-MIB DEFINITIONS ::= BEGIN
IMPORTS

    enterprises
        FROM RFC1155-SMI
    OBJECT-TYPE
        FROM RFC-1212
    TRAP-TYPE
        FROM RFC-1215;

swift   OBJECT IDENTIFIER ::= { enterprises 18494 }
saa     OBJECT IDENTIFIER ::= { swift 2 }
saatrap OBJECT IDENTIFIER ::= { saa 1 }

saaInstance OBJECT-TYPE
        SYNTAX          OCTET STRING (SIZE(256))
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "The unique identifier of SAA instance."
        ::= { saatrap 1 }

saaDate OBJECT-TYPE
        SYNTAX          OCTET STRING (SIZE(10))
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Date"
        ::= { saatrap 2 }

saaTime OBJECT-TYPE
        SYNTAX          OCTET STRING (SIZE(9))
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Time"
        ::= { saatrap 3 }

saaPlugin OBJECT-TYPE
        SYNTAX          OCTET STRING
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Generated by"
        ::= { saatrap 4 }

saaEventNumber OBJECT-TYPE
        SYNTAX          INTEGER
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Event number"
        ::= { saatrap 5 }

saaEventSeverity OBJECT-TYPE
        SYNTAX          OCTET STRING
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Event severity"
        ::= { saatrap 6 }

saaEventClass OBJECT-TYPE
        SYNTAX          OCTET STRING
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Event class"
        ::= { saatrap 7 }

saaEventName OBJECT-TYPE
        SYNTAX          OCTET STRING
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Event name"
        ::= { saatrap 8 }

saaEventDescription OBJECT-TYPE
        SYNTAX          OCTET STRING
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Event description"
        ::= { saatrap 9 }

snmpSAAEvent TRAP-TYPE
              ENTERPRISE  saa
              VARIABLES
              {
              saaInstance,
              saaDate,
              saaTime,
              saaPlugin,
              saaEventNumber,
              saaEventSeverity,
              saaEventClass,
              saaEventName,
              saaEventDescription
              }
              DESCRIPTION
                          "The following event was generated via Alliance Access.
                                                   More information is available in the details:"
              ::= 1

saaHb   OBJECT IDENTIFIER ::= { saa 2 }

saaHbInstance OBJECT-TYPE
        SYNTAX          OCTET STRING (SIZE(256))
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Unique identifier of Alliance Access instance"
        ::= { saaHb 1 }

saaHbStatus OBJECT-TYPE
        SYNTAX          OCTET STRING (SIZE(20))
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Status of Alliance Access instance"
        ::= { saaHb 2 }

saaHbInterval OBJECT-TYPE
        SYNTAX          INTEGER
        ACCESS          read-only
        STATUS          mandatory
        DESCRIPTION     "Heartbeat Interval"
        ::= { saaHb 3 }

snmpSWPHeartBeat TRAP-TYPE
              ENTERPRISE saa
              VARIABLES
              {
              saaHbInstance,
              saaHbStatus,
              saaHbInterval
              }
              DESCRIPTION
                          "The following event was generated via the Alliance Access.
                                                   More information is available in the details:"
              ::= 2

END
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jul 2016 21:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283647#M33681</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2016-07-25T21:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Modular Input: Why am I getting error "cannot locate module ./saatrap.mib'" trying to convert an MIB file to Python?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283648#M33682</link>
      <description>&lt;P&gt;Thanks for your input Damien, the conversion works now, but after copying the mib to snmp_ta/bin/mibs/ I am still getting the below error:&lt;BR /&gt;
&lt;CODE&gt;Exception resolving MIB name in the caught trap NoSuchObjectError({'str': 'No MIB registered that defines 1.3.6.1.4.1.18494.2.1.9 object, closest known parent is 1.3.6.1.4.1 (SNMPv2-SMI::enterprises)'})&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Noting that by browsing the MIB file you could find the referenced object in it.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283648#M33682</guid>
      <dc:creator>ramighebral</dc:creator>
      <dc:date>2016-08-10T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Modular Input: Why am I getting error "cannot locate module ./saatrap.mib'" trying to convert an MIB file to Python?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283649#M33683</link>
      <description>&lt;P&gt;1) Show  me your inputs.conf stanza &lt;BR /&gt;
2)  Show me the &lt;STRONG&gt;exact&lt;/STRONG&gt; name of the generated python module you placed in the mibs dir&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SNMP-Modular-Input-Why-am-I-getting-error-quot-cannot-locate/m-p/283649#M33683</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2016-08-10T08:00:45Z</dc:date>
    </item>
  </channel>
</rss>

