<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hello,</p>
<p>I have two UPS from PowerWalker: VFI 1500RM LCD and VFI 3000RM LCD both equiped with SNMP card, but NUT with snmp-ups does not support them. PowerWalker declare support RFC1213, RFC162 but there is a problem with some snmp values:</p>
<p># upsdrvctl start<br />Network UPS Tools - UPS driver controller 2.6.4<br />Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)<br />Detected 3K on host 10.0.0.236 (mib: ietf 1.4)<br />[pw3000] unhandled ASN 0x6 received from 1.3.6.1.2.1.33.1.7.1.0<br /><br /></p>
<p>[snmp-ups with pw3000]</p>
<p>   0.612495     getting data: ups.status (1.3.6.1.2.1.33.1.7.1.0)<br />   0.612500     su_ups_get: ups.status 1.3.6.1.2.1.33.1.7.1.0<br />   0.612504     nut_snmp_get(1.3.6.1.2.1.33.1.7.1.0)<br />   0.612917     [pw3000] unhandled ASN 0x6 received from 1.3.6.1.2.1.33.1.7.1.0<br />   0.612929     => Failed<br />   0.612935     SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1.0</p>
<p>[snmpwalk says]</p>
<p>iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0</p>
<p>ealier same problem about: unhandled ASN 0x80 received from 1.3.6.1.2.1.33.1.6.3.8<br /><br /></p>
<p>Is it possible to solve it, i can support with tests. Best solution would be possibility to tweak SNMP keys from config file eg. prepare mappings loaded from external files because I saw  key 1.3.6.1.2.1.33.1.<strong>7.1</strong> directly inside ietf-mib.c :</p>
<p><span class="lineno">{ <span class="stringliteral">"ups.status"</span>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/extstate_8h.html#ad4fe464721976cb1d5c6cbac63a59ada">ST_FLAG_STRING</a>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/snmp-ups_8h.html#a0b6ee4b210ff66feb3e3d5cf98c8fcd5">SU_INFOSIZE</a>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/ietf-mib_8c.html#aeab4fc1af0563aab80214f3b571130b4">IETF_OID_UPS_MIB</a> <span class="stringliteral">"6.3.8"</span>, <span class="stringliteral">""</span>, 0, ietf_overload_info }, <span class="comment">/* upsAlarmOutputOverload */</span></span></p>
<p><span class="lineno"></span>{ <span class="stringliteral">"ups.status"</span>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/extstate_8h.html#ad4fe464721976cb1d5c6cbac63a59ada">ST_FLAG_STRING</a>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/snmp-ups_8h.html#a0b6ee4b210ff66feb3e3d5cf98c8fcd5">SU_INFOSIZE</a>, <a class="code" href="http://fossies.org/dox/nut-2.7.2/ietf-mib_8c.html#aeab4fc1af0563aab80214f3b571130b4">IETF_OID_UPS_MIB</a> <span class="stringliteral">"<strong>7.1</strong>.0"</span>, <span class="stringliteral">""</span>, 0, ietf_test_active_info }, <span class="comment">/* upsTestId */</span></p>
<p> </p>
<p>Tweak file could be as:</p>
<p>ietf_overload_info = <span class="lineno"><span class="stringliteral">"6.3.8" (original value or other key remaping "3.1.4" </span></span><span class="lineno"><span class="stringliteral">or discard or disable or ignore)</span></span></p>
<p>etf_test_active_info = discard (other key value or discard or disable <span class="lineno"><span class="stringliteral">or ignore</span></span>)</p>
<p> </p>
<p>Config and dumps below...</p>
<p>upc.conf</p>
<p>[pw3000]<br />    driver = snmp-ups<br />    port = 10.0.0.236<br />    community = public<br />    snmp_version = v1<br />    mibs = ietf<br />    pollfreq = 15<br /><br /></p>
<p>#snmpwalk -v1 .....</p>
<p>[iso.3.6.1.2.1.33 values filtered]:</p>
<p>iso.3.6.1.2.1.33.1.1.1.0 = ""<br />iso.3.6.1.2.1.33.1.1.2.0 = STRING: "3K"<br />iso.3.6.1.2.1.33.1.1.3.0 = STRING: "VERFW:00204.04"<br />iso.3.6.1.2.1.33.1.1.4.0 = STRING: "1.0"<br />iso.3.6.1.2.1.33.1.1.5.0 = STRING: "SNMP-web-server-3K"<br />iso.3.6.1.2.1.33.1.1.6.0 = ""<br />iso.3.6.1.2.1.33.1.2.1.0 = INTEGER: 2<br />iso.3.6.1.2.1.33.1.2.2.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.2.3.0 = INTEGER: 27<br />iso.3.6.1.2.1.33.1.2.4.0 = INTEGER: 100<br />iso.3.6.1.2.1.33.1.2.5.0 = INTEGER: 820<br />iso.3.6.1.2.1.33.1.2.6.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.2.7.0 = INTEGER: 16<br />iso.3.6.1.2.1.33.1.3.1.0 = Counter32: 0<br />iso.3.6.1.2.1.33.1.3.2.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.3.3.1.2.0 = INTEGER: 500<br />iso.3.6.1.2.1.33.1.3.3.1.3.0 = INTEGER: 227<br />iso.3.6.1.2.1.33.1.3.3.1.4.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.3.3.1.5.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.4.1.0 = INTEGER: 3<br />iso.3.6.1.2.1.33.1.4.2.0 = INTEGER: 500<br />iso.3.6.1.2.1.33.1.4.3.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.4.4.1.2.0 = INTEGER: 230<br />iso.3.6.1.2.1.33.1.4.4.1.3.0 = INTEGER: 34<br />iso.3.6.1.2.1.33.1.4.4.1.4.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.4.4.1.5.0 = INTEGER: 26<br />iso.3.6.1.2.1.33.1.5.1.0 = INTEGER: 500<br />iso.3.6.1.2.1.33.1.5.2.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.5.3.1.2.0 = INTEGER: 227<br />iso.3.6.1.2.1.33.1.5.3.1.3.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.5.3.1.4.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.6.1.0 = Gauge32: 0<br />iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0<br />iso.3.6.1.2.1.33.1.7.2.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.7.3.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.7.4.0 = STRING: " "<br />iso.3.6.1.2.1.33.1.7.5.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.7.6.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.8.1.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.8.2.0 = INTEGER: -1<br />iso.3.6.1.2.1.33.1.8.3.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.8.4.0 = INTEGER: -1<br />iso.3.6.1.2.1.33.1.8.5.0 = INTEGER: 1<br />iso.3.6.1.2.1.33.1.9.1.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.2.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.3.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.4.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.5.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.6.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.7.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.8.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.9.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.1.9.10.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.13.1.0 = INTEGER: 999999999<br />iso.3.6.1.2.1.33.13.2.0 = INTEGER: 999999999<br />iso.3.6.1.2.1.33.13.3.0 = INTEGER: 999999999<br />iso.3.6.1.2.1.33.13.4.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.13.5.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.13.6.0 = INTEGER: 0<br />iso.3.6.1.2.1.33.13.7.0 = INTEGER: 0<br /><br /></p>
<p>[pw3000 via blaser_usb #/lib/nut/blazer_usb -a pw3000u -DDD]</p>
<p>   0.002193     Checking device (1D6B/0002) (002/001)<br />   0.002214     - VendorID: 1d6b<br />   0.002217     - ProductID: 0002<br />   0.002220     - Manufacturer: Linux 2.6.32-34-pve ehci_hcd<br />   0.002222     - Product: EHCI Host Controller<br />   0.002225     - Serial Number: 0000:00:1d.0<br />   0.002227     - Bus: 002<br />   0.002229     Trying to match device<br />   0.002232     Device does not match - skipping<br />   0.002237     Checking device (0665/5161) (001/007)<br />   0.010016     - VendorID: 0665<br />   0.010023     - ProductID: 5161<br />   0.010026     - Manufacturer: unknown<br />   0.010029     - Product: unknown<br />   0.010031     - Serial Number: unknown<br />   0.010034     - Bus: 001<br />   0.010036     Trying to match device<br />   0.010059     Device matches<br />   0.011057     Trying megatec protocol...<br />   0.013044     send: Q1<br />   0.249174     read: 27.5 229.5 026 50.0 2.27 16.7 00000001<br />   0.249182     blazer_status: short reply<br />   0.249186     Status read 1 failed<br />   0.251040     send: Q1<br />   0.489161     read: (227.5 227.3 230.7 027 50.0 2.27 17.0 00000001<br />   0.489206     Status read in 2 tries<br />   0.489209     Supported UPS detected with megatec protocol<br />   0.491041     send: F<br />   0.609169     read: #230.0 013 072.0 50.0<br />   0.609187     Ratings read in 1 tries<br />   0.611051     send: I<br />   0.801167     read: #                HV 3K      00204.04<br />   0.801183     Vendor information read in 1 tries<br />   0.801186     No values provided for battery high/low voltages in ups.conf<br /><br />   0.801194     Using 'guestimation' (low: 62.400000, high: 78.000000)!<br />   0.801197     Battery runtime will not be calculated (runtimecal not set)<br />   0.803038     send: Q1<br />   1.049170     read: (227.5 227.6 230.2 028 50.0 2.28 17.2 00000001<br />   1.049277     dstate_init: sock /var/run/nut/blazer_usb-pw3000u open on fd 5<br />   1.051035     send: Q1<br />   1.289144     read: (227.5 227.5 229.0 026 50.0 2.28 17.2 00000001<br />   3.053135     send: Q1<br />   3.289182     read: (227.5 227.4 229.9 025 50.0 2.27 17.2 00000001<br />   5.055093     send: Q1<br />   5.289192     read: (228.1 227.9 229.1 026 50.0 2.28 17.0 00000001<br />   7.057093     send: Q1<br />   7.289088     read: (227.3 227.3 229.6 025 50.0 2.28 16.7 00000001<br /><br /></p>
<div>
<pre><span style="font-family: courier new,courier;">-- 

Regards<br />KP

</span></pre>
</div>
<p style="margin-bottom: 0cm;"><span style="color: #767676;"><span style="font-family: Courier New,monospace;"><span style="font-size: small;">iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0</span></span></span></p>
</body></html>