<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On Feb 10, 2014, at 1:16 AM, Иши Кылса wrote:<br><br><blockquote type="cite">Thanks for you reply. Concerning the subscribtion list, I have earlier filled in the fields and sent request to subscribe to this list, but still haven't got an answer. <br></blockquote><div><br></div><div>I added you manually, but check your spam folder just in case it ended up there.</div><div><br></div><blockquote type="cite">Yes, I do have a MIB file that was on CD that came with the UPS, attached it to this message.  <br><br>Thanks for the link, started following it and at the step concerning runninh script scripts/subdriver/gen-snmp-subdriver.sh downloaded the archive nut-2.6.2.tar.gz but there is no script gen-snmp-subdriver.sh in it, only file path-to-subdriver.sh in directory scripts/subdriver/. Then through google found the script gen-snmp-subdriver.sh and put in directory scripts/subdriver/ and ran it: <br></blockquote><div><br></div><div>Hmm, we'll have to add that to the distribution.</div><div><br></div><div>Not sure what Google found, but this is generally where the latest version is kept:</div><div><br></div><div><a 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></div><div><br></div><div>For now, I am putting fixes on this branch:</div><div><br></div><div><a href="https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh">https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh</a></div><div><br></div><div>Can you try the version from the second link? (use the "Raw" button to download the script itself)</div><div><br></div><blockquote type="cite">./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n NETCARD.mib<br></blockquote><div><br></div><div>I would recommend using "-n TrippLite" or similar, since the rest of the MIB names are company names rather than product names. Also, the name needs to be a valid C identifier (alphanumeric).</div><br><blockquote type="cite">snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable)<br>COUNT = 0 / 0<br>Creating netcard.mib-mib.h<br>Creating netcard.mib-mib.c<br>Done.<br><br>Do not forget to:<br>* bump DRIVER_VERSION in snmp-ups.c (add "0.01")<br>* copy "netcard.mib-mib.h" and "netcard.mib-mib.c" to "../../drivers"<br>* add #include "netcard.mib-mib.h" to snmp-ups.c<br>* add &netcard.mib to snmp-ups.c:mib2nut[] list,<br>* add netcard.mib-mib.c to snmp_ups_SOURCES in drivers/Makefile.am<br>* add netcard.mib-mib.h to dist_noinst_HEADERS in drivers/Makefile.am<br>* copy netcard.mib-mib.c and netcard.mib-mib.h to ../drivers/<br>* "autoreconf && configure && make" from the top level directory<br><br>Does it mean it is ok?</blockquote><br><div>-- <br>Charles Lepple<br>clepple@gmail<br><br><br></div><br></body></html>