<br><br><div class="gmail_quote">2011/2/11 Philip Tait <span dir="ltr">&lt;<a href="mailto:philip@naoj.org">philip@naoj.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;m following advice from Arjen de Korte and Charles Lepple (see<br>
<a href="http://lists.alioth.debian.org/pipermail/nut-upsuser/2010-January/005829.html" target="_blank">http://lists.alioth.debian.org/pipermail/nut-upsuser/2010-January/005829.html</a>).<br>
<br>
I added a full update on the specifics of my situation:<br>
<a href="http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-February/005255.html" target="_blank">http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-February/005255.html</a><br>
<br>
Would appreciate guidance on getting started generating a MIB-to-NUT<br>
mapping (tools, etc):<br>
<br>
OS: CentOS 5.5<br>
<br>
NUT version 2.6.0<br>
<br>
Thanks for any advice or guidance,<font color="#888888"><br></font></blockquote></div><br>Arjen already pointed out drivers/ietf-mib.{c,h}<br>Other *-<a href="http://mib.ch">mib.ch</a> files from the same directory may help too.<br>
<br>Now, you will also need a numeric walk, since we don&#39;t use textual names, which require to have the .MIB file on the computer (which is a dependency with no added value).<br><br>So, walk again using:<br>$ snmpwalk -On -c public -v 1 ups3 .1.3.6.1.4.1.476.1.1<br>
<pre><br></pre>2 things are then required:<br>- knowing OIDs information, ie the meaning and unit, which can be checked using a MIB GUI<br>- knowing the NUT data on which this OID maps. Note that some OIDs may not map on NUT data.<br>
All the existing NUT variables are there:<br><a href="http://www.networkupstools.org/docs/developer-guide.chunked/apa.html">http://www.networkupstools.org/docs/developer-guide.chunked/apa.html</a><br><br>As an example, here is the mapping for the first OIDs:<br>
<br>LIEBERT-UPS-MIB::lcUpsIdentManufacturer.0 = STRING: &quot;Liebert&quot;        =&gt; {device,ups}.mfr<br>LIEBERT-UPS-MIB::lcUpsIdentModel.0 = STRING: &quot;AP341/342&quot;            =&gt; {device,ups}.model<br>LIEBERT-UPS-MIB::lcUpsIdentSoftwareVersion.0 = STRING: &quot;2.5.3A&quot;        =&gt; {device,ups}.mfr<br>
LIEBERT-UPS-MIB::lcUpsIdentSpecific.0 = OID: LIEBERT-UPS-MIB::luSeries300<br>LIEBERT-UPS-MIB::lcUpsBatTimeRemaining.0 = INTEGER: 65535            =&gt; battery.runtime<br>LIEBERT-UPS-MIB::lcUpsBatVoltage.0 = INTEGER: 406                    =&gt; battery.voltage<br>
<br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>