[Nut-upsuser] NUT vs PowerWalker/BlueWalker SNMP with VFI 1500RM/3000RM LCD models
KP
kp at kll.pl
Thu Mar 12 12:32:03 UTC 2015
Hello,
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:
# upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)
Detected 3K on host 10.0.0.236 (mib: ietf 1.4)
[pw3000] unhandled ASN 0x6 received from 1.3.6.1.2.1.33.1.7.1.0
[snmp-ups with pw3000]
0.612495 getting data: ups.status (1.3.6.1.2.1.33.1.7.1.0)
0.612500 su_ups_get: ups.status 1.3.6.1.2.1.33.1.7.1.0
0.612504 nut_snmp_get(1.3.6.1.2.1.33.1.7.1.0)
0.612917 [pw3000] unhandled ASN 0x6 received from
1.3.6.1.2.1.33.1.7.1.0
0.612929 => Failed
0.612935 SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1.0
[snmpwalk says]
iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0
ealier same problem about: unhandled ASN 0x80 received from
1.3.6.1.2.1.33.1.6.3.8
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.7.1 directly inside ietf-mib.c :
{ "ups.status", ST_FLAG_STRING [1], SU_INFOSIZE [2], IETF_OID_UPS_MIB
[3] "6.3.8", "", 0, ietf_overload_info }, /* upsAlarmOutputOverload */
{ "ups.status", ST_FLAG_STRING [1], SU_INFOSIZE [2], IETF_OID_UPS_MIB
[3] "7.1.0", "", 0, ietf_test_active_info }, /* upsTestId */
Tweak file could be as:
ietf_overload_info = "6.3.8" (original value or other key remaping
"3.1.4" or discard or disable or ignore)
etf_test_active_info = discard (other key value or discard or disable or
ignore)
Config and dumps below...
upc.conf
[pw3000]
driver = snmp-ups
port = 10.0.0.236
community = public
snmp_version = v1
mibs = ietf
pollfreq = 15
#snmpwalk -v1 .....
[iso.3.6.1.2.1.33 values filtered]:
iso.3.6.1.2.1.33.1.1.1.0 = ""
iso.3.6.1.2.1.33.1.1.2.0 = STRING: "3K"
iso.3.6.1.2.1.33.1.1.3.0 = STRING: "VERFW:00204.04"
iso.3.6.1.2.1.33.1.1.4.0 = STRING: "1.0"
iso.3.6.1.2.1.33.1.1.5.0 = STRING: "SNMP-web-server-3K"
iso.3.6.1.2.1.33.1.1.6.0 = ""
iso.3.6.1.2.1.33.1.2.1.0 = INTEGER: 2
iso.3.6.1.2.1.33.1.2.2.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.2.3.0 = INTEGER: 27
iso.3.6.1.2.1.33.1.2.4.0 = INTEGER: 100
iso.3.6.1.2.1.33.1.2.5.0 = INTEGER: 820
iso.3.6.1.2.1.33.1.2.6.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.2.7.0 = INTEGER: 16
iso.3.6.1.2.1.33.1.3.1.0 = Counter32: 0
iso.3.6.1.2.1.33.1.3.2.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.3.3.1.2.0 = INTEGER: 500
iso.3.6.1.2.1.33.1.3.3.1.3.0 = INTEGER: 227
iso.3.6.1.2.1.33.1.3.3.1.4.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.3.3.1.5.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.4.1.0 = INTEGER: 3
iso.3.6.1.2.1.33.1.4.2.0 = INTEGER: 500
iso.3.6.1.2.1.33.1.4.3.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.4.4.1.2.0 = INTEGER: 230
iso.3.6.1.2.1.33.1.4.4.1.3.0 = INTEGER: 34
iso.3.6.1.2.1.33.1.4.4.1.4.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.4.4.1.5.0 = INTEGER: 26
iso.3.6.1.2.1.33.1.5.1.0 = INTEGER: 500
iso.3.6.1.2.1.33.1.5.2.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.5.3.1.2.0 = INTEGER: 227
iso.3.6.1.2.1.33.1.5.3.1.3.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.5.3.1.4.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.6.1.0 = Gauge32: 0
iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0
iso.3.6.1.2.1.33.1.7.2.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.7.3.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.7.4.0 = STRING: " "
iso.3.6.1.2.1.33.1.7.5.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.7.6.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.8.1.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.8.2.0 = INTEGER: -1
iso.3.6.1.2.1.33.1.8.3.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.8.4.0 = INTEGER: -1
iso.3.6.1.2.1.33.1.8.5.0 = INTEGER: 1
iso.3.6.1.2.1.33.1.9.1.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.2.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.3.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.4.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.5.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.6.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.7.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.8.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.9.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.9.10.0 = INTEGER: 0
iso.3.6.1.2.1.33.13.1.0 = INTEGER: 999999999
iso.3.6.1.2.1.33.13.2.0 = INTEGER: 999999999
iso.3.6.1.2.1.33.13.3.0 = INTEGER: 999999999
iso.3.6.1.2.1.33.13.4.0 = INTEGER: 0
iso.3.6.1.2.1.33.13.5.0 = INTEGER: 0
iso.3.6.1.2.1.33.13.6.0 = INTEGER: 0
iso.3.6.1.2.1.33.13.7.0 = INTEGER: 0
[pw3000 via blaser_usb #/lib/nut/blazer_usb -a pw3000u -DDD]
0.002193 Checking device (1D6B/0002) (002/001)
0.002214 - VendorID: 1d6b
0.002217 - ProductID: 0002
0.002220 - Manufacturer: Linux 2.6.32-34-pve ehci_hcd
0.002222 - Product: EHCI Host Controller
0.002225 - Serial Number: 0000:00:1d.0
0.002227 - Bus: 002
0.002229 Trying to match device
0.002232 Device does not match - skipping
0.002237 Checking device (0665/5161) (001/007)
0.010016 - VendorID: 0665
0.010023 - ProductID: 5161
0.010026 - Manufacturer: unknown
0.010029 - Product: unknown
0.010031 - Serial Number: unknown
0.010034 - Bus: 001
0.010036 Trying to match device
0.010059 Device matches
0.011057 Trying megatec protocol...
0.013044 send: Q1
0.249174 read: 27.5 229.5 026 50.0 2.27 16.7 00000001
0.249182 blazer_status: short reply
0.249186 Status read 1 failed
0.251040 send: Q1
0.489161 read: (227.5 227.3 230.7 027 50.0 2.27 17.0 00000001
0.489206 Status read in 2 tries
0.489209 Supported UPS detected with megatec protocol
0.491041 send: F
0.609169 read: #230.0 013 072.0 50.0
0.609187 Ratings read in 1 tries
0.611051 send: I
0.801167 read: # HV 3K 00204.04
0.801183 Vendor information read in 1 tries
0.801186 No values provided for battery high/low voltages in ups.conf
0.801194 Using 'guestimation' (low: 62.400000, high: 78.000000)!
0.801197 Battery runtime will not be calculated (runtimecal not set)
0.803038 send: Q1
1.049170 read: (227.5 227.6 230.2 028 50.0 2.28 17.2 00000001
1.049277 dstate_init: sock /var/run/nut/blazer_usb-pw3000u open on fd 5
1.051035 send: Q1
1.289144 read: (227.5 227.5 229.0 026 50.0 2.28 17.2 00000001
3.053135 send: Q1
3.289182 read: (227.5 227.4 229.9 025 50.0 2.27 17.2 00000001
5.055093 send: Q1
5.289192 read: (228.1 227.9 229.1 026 50.0 2.28 17.0 00000001
7.057093 send: Q1
7.289088 read: (227.3 227.3 229.6 025 50.0 2.28 16.7 00000001
--
Regards
KP
iso.3.6.1.2.1.33.1.7.1.0 = OID: ccitt.0
Links:
------
[1]
http://fossies.org/dox/nut-2.7.2/extstate_8h.html#ad4fe464721976cb1d5c6cbac63a59ada
[2]
http://fossies.org/dox/nut-2.7.2/snmp-ups_8h.html#a0b6ee4b210ff66feb3e3d5cf98c8fcd5
[3]
http://fossies.org/dox/nut-2.7.2/ietf-mib_8c.html#aeab4fc1af0563aab80214f3b571130b4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150312/0bb51bde/attachment.html>
More information about the Nut-upsuser
mailing list