<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Sorry, I just now figured out how to
      get a usable output. <br>
      -Option one doesn't work at all for me. <br>
      <br>
      snmp_build: unknown failuresnmpget: Error building ASN.1
      representation (Can't build OID for variable)<br>
      COUNT = 0 / 0<br>
      Creating /usr/share/snmp/mibs/ups-mib.txt-mib.h<br>
      Creating /usr/share/snmp/mibs/ups-mib.txt-mib.c<br>
      Done.<br>
      <br>
      -Option 2 is attached. I ran the following to get the output. <br>
      snmpwalk -Os -v2c -c XXXXXX XXXXXXXXXXXX .1.3.6.1.4.1.850.100 -m
      //usr/share/snmp/mibs/TRIPPLITE-MIB.txt > snmpwalk-Os.log<br>
      snmpwalk -On -v2c -c XXXXXX XXXXXXXXXXXX .1.3.6.1.4.1.850.100 -m
      /usr/share/snmp/mibs/TRIPPLITE-MIB.txt > snmpwalk-On.log<br>
      ./gen-snmp-subdriver.sh -s .1.3.6.1.4.1.850.100 snmpwalk-On.log 
      snmpwalk-Os.log<br>
      <br>
      <br>
      <br>
      Thanks again for the help,<br>
      Jason<br>
      <br>
      On 2/25/2014 7:03 PM, Charles Lepple wrote:<br>
    </div>
    <blockquote
      cite="mid:38B49EA3-F738-495E-AD3A-FFF9E32947DC@gmail.com"
      type="cite">
      <div>
        <div>On Feb 25, 2014, at 4:23 PM, Arnaud Quette wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div dir="ltr">
            <div class="gmail_extra">
              <div class="gmail_quote">gen-snmp-subdriver.sh simply
                hasn't done its job, for some reasons.</div>
            </div>
            <div class="gmail_extra">well, 1 clear is that's it not a
              completed effort... at all<br>
            </div>
            <div class="gmail_extra">but, still IIRC, it should have
              produced at least a bit more<br>
            </div>
          </div>
        </blockquote>
        <div dir="ltr">
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Hi Arnaud,</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">I may not have been specific enough
            in my description.</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">The crash that Jason saw is with the
            version of snmp-ups that is currently in Git - including the
            new 'xppc' MIB, but the NULL pointer in question is also in
            'delta_ups'.</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Given
            that mib2nut[i]->oid_auto_check is only used for the
            "classic" OID check, I think we can just add a special case
            to check for NULL, and continue the loop if oid_auto_check
            has not been provided.</div>
          <div class="gmail_extra"><br>
          </div>
        </div>
        <blockquote type="cite">
          <div dir="ltr">
            <div class="gmail_extra">@Jason: how have you called the
              script?<br clear="all">
            </div>
            <div class="gmail_extra">could you please also send an
              archive including:<br>
            </div>
            <div class="gmail_extra">- the results of the adapted
              commands on #L73, #L74<br>
              <a moz-do-not-send="true"
href="https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh">https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh</a><br>
            </div>
            <div class="gmail_extra">- your mib file<br>
            </div>
          </div>
        </blockquote>
      </div>
      <div><br>
      </div>
      Jason,
      <div><br>
      </div>
      <div>this would still be useful to address the issue of
        gen-snmp-subdriver not parsing things correctly.</div>
      <div><br>
        <div>
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; font-size: medium; ">
            <div>-- </div>
            <div>Charles Lepple</div>
            <div>clepple@gmail</div>
            <div><br>
            </div>
          </span><br class="Apple-interchange-newline">
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Nut-upsuser mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a>
<a class="moz-txt-link-freetext" href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a></pre>
    </blockquote>
    <br>
  </body>
</html>