[Nut-upsuser] nut-driver fails to communicate with tripplite UPS over snmpv3; snmpget works
Jim Klimov
jimklimov at cos.ru
Thu Oct 7 08:09:47 BST 2021
On October 6, 2021 9:38:32 PM UTC, Nathan Dehnel via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> wrote:
>Not sure what the issue here is.
>
>\root at gentooserver /etc/nut # snmpget -v 3 -u localadmin -l authPriv
>-a SHA -A 'password' -x AES -X 'password' poweralert-061036425037
>sysUpTime.0
>DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (985976100) 114 days,
>2:49:21.00
>
>root at gentooserver /etc/nut # /lib64/nut/snmp-ups -DDDDDD -a tripplite1
>Network UPS Tools - Generic SNMP UPS driver 0.97 (2.7.4)
> 0.000000 send_to_all: SETINFO driver.parameter.port
>"poweralert-061036425037"
> 0.000054 send_to_all: SETINFO driver.parameter.snmp_version "v3"
> 0.000062 send_to_all: SETINFO driver.parameter.secLevel "authPriv"
> 0.000068 send_to_all: SETINFO driver.parameter.authProtocol "SHA"
> 0.000079 send_to_all: SETINFO driver.parameter.privProtocol "AES"
> 0.000096 debug level is '6'
> 0.001202 SNMP UPS driver: entering upsdrv_initups()
> 0.001216 SNMP UPS driver: entering nut_snmp_init(snmp-ups)
> 0.012056 Setting SNMP retries to 5
> 0.012070 Setting SNMP timeout to 1 second(s)
> 0.034041 SNMP UPS driver: entering load_mib2nut(auto)
> 0.034051 trying the new match_sysoid() method
> 0.034053 Entering nut_snmp_get_oid()
> 0.034056 nut_snmp_get(.1.3.6.1.2.1.1.2.0)
> 0.034058 nut_snmp_walk(.1.3.6.1.2.1.1.2.0)
> 0.034061 nut_snmp_walk: max. iteration = 1
> 0.036245 Can't get sysOID value
> 0.036271 load_mib2nut: trying classic method with 'apcc' mib
> 0.036279 su_find_info: "ups.model" found
> 0.036285 Testing ups.model using OID .1.3.6.1.4.1.318.1.1.1.1.1.1.0
> 0.036304 Entering nut_snmp_get_str()
> 0.036308 nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)
> 0.036311 nut_snmp_walk(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)
> 0.036313 nut_snmp_walk: max. iteration = 1
>0.036325 load_mib2nut: testOID provided and doesn't match MIB
>'apcc'!
> 0.036330 load_mib2nut: trying classic method with 'mge' mib
> 0.036333 su_find_info: "ups.model" found
> 0.036337 Testing ups.model using OID .1.3.6.1.4.1.705.1.1.1.0
> 0.036340 Entering nut_snmp_get_str()
> 0.036344 nut_snmp_get(.1.3.6.1.4.1.705.1.1.1.0)
> 0.036354 nut_snmp_walk(.1.3.6.1.4.1.705.1.1.1.0)
> 0.036359 nut_snmp_walk: max. iteration = 1
>0.036366 load_mib2nut: testOID provided and doesn't match MIB 'mge'!
> 0.036370 load_mib2nut: trying classic method with 'netvision' mib
> 0.036376 su_find_info: "ups.model" found
>0.036380 Testing ups.model using OID .1.3.6.1.4.1.4555.1.1.1.1.1.1.0
> 0.036383 Entering nut_snmp_get_str()
> 0.036388 nut_snmp_get(.1.3.6.1.4.1.4555.1.1.1.1.1.1.0)
> 0.036392 nut_snmp_walk(.1.3.6.1.4.1.4555.1.1.1.1.1.1.0)
> 0.036410 nut_snmp_walk: max. iteration = 1
>0.036417 load_mib2nut: testOID provided and doesn't match MIB
>'netvision'!
> 0.036422 load_mib2nut: trying classic method with 'pw' mib
> 0.036427 su_find_info: "ups.model" found
> 0.036430 Testing ups.model using OID 1.3.6.1.4.1.534.1.1.2.0
> 0.036434 Entering nut_snmp_get_str()
> 0.036437 nut_snmp_get(1.3.6.1.4.1.534.1.1.2.0)
> 0.036444 nut_snmp_walk(1.3.6.1.4.1.534.1.1.2.0)
> 0.036448 nut_snmp_walk: max. iteration = 1
> 0.036454 load_mib2nut: testOID provided and doesn't match MIB 'pw'!
> 0.036458 load_mib2nut: trying classic method with 'pxgx_ups' mib
> 0.036464 su_find_info: "ups.model" found
> 0.036468 Testing ups.model using OID 1.3.6.1.4.1.534.1.1.2.0
> 0.036472 Entering nut_snmp_get_str()
> 0.036476 nut_snmp_get(1.3.6.1.4.1.534.1.1.2.0)
> 0.036481 nut_snmp_walk(1.3.6.1.4.1.534.1.1.2.0)
> 0.036487 nut_snmp_walk: max. iteration = 1
>0.036506 load_mib2nut: testOID provided and doesn't match MIB
>'pxgx_ups'!
>0.036513 load_mib2nut: trying classic method with 'aphel_genesisII'
>mib
> 0.036518 su_find_info: "ups.model" found
> 0.036522 Testing ups.model using OID .1.3.6.1.4.1.17373.3.1.1.0
> 0.036525 Entering nut_snmp_get_str()
> 0.036529 nut_snmp_get(.1.3.6.1.4.1.17373.3.1.1.0)
> 0.036534 nut_snmp_walk(.1.3.6.1.4.1.17373.3.1.1.0)
> 0.036538 nut_snmp_walk: max. iteration = 1
> 0.036544 load_mib2nut: testOID provided and doesn't match MIB
>'aphel_genesisII'!
>0.036555 load_mib2nut: trying classic method with 'aphel_revelation'
>mib
> 0.036559 su_find_info: "ups.model" found
>0.036565 Testing ups.model using OID .1.3.6.1.4.1.534.6.6.6.1.1.12.0
> 0.036569 Entering nut_snmp_get_str()
> 0.036573 nut_snmp_get(.1.3.6.1.4.1.534.6.6.6.1.1.12.0)
> 0.036577 nut_snmp_walk(.1.3.6.1.4.1.534.6.6.6.1.1.12.0)
> 0.036581 nut_snmp_walk: max. iteration = 1
> 0.036588 load_mib2nut: testOID provided and doesn't match MIB
>'aphel_revelation'!
> 0.036593 load_mib2nut: trying classic method with 'eaton_epdu' mib
> 0.036598 su_find_info: "ups.model" found
>0.036602 Testing ups.model using OID 1.3.6.1.4.1.534.6.6.7.1.2.1.2.0
> 0.036623 Entering nut_snmp_get_str()
> 0.036628 nut_snmp_get(1.3.6.1.4.1.534.6.6.7.1.2.1.2.0)
> 0.036631 nut_snmp_walk(1.3.6.1.4.1.534.6.6.7.1.2.1.2.0)
> 0.036635 nut_snmp_walk: max. iteration = 1
> 0.036641 load_mib2nut: testOID provided and doesn't match MIB
>'eaton_epdu'!
>0.036646 load_mib2nut: trying classic method with
>'pulizzi_switched1' mib
> 0.036651 su_find_info: "ups.model" found
> 0.036664 Testing ups.model using OID .1.3.6.1.4.1.20677.2.1.1.0
> 0.036670 Entering nut_snmp_get_str()
> 0.036673 nut_snmp_get(.1.3.6.1.4.1.20677.2.1.1.0)
> 0.036677 nut_snmp_walk(.1.3.6.1.4.1.20677.2.1.1.0)
> 0.036684 nut_snmp_walk: max. iteration = 1
> 0.036690 load_mib2nut: testOID provided and doesn't match MIB
>'pulizzi_switched1'!
>0.036694 load_mib2nut: trying classic method with
>'pulizzi_switched2' mib
> 0.036700 su_find_info: "ups.model" found
> 0.036702 Testing ups.model using OID .1.3.6.1.4.1.20677.2.1.1.0
> 0.036708 Entering nut_snmp_get_str()
> 0.036710 nut_snmp_get(.1.3.6.1.4.1.20677.2.1.1.0)
> 0.036720 nut_snmp_walk(.1.3.6.1.4.1.20677.2.1.1.0)
> 0.036724 nut_snmp_walk: max. iteration = 1
> 0.036730 load_mib2nut: testOID provided and doesn't match MIB
>'pulizzi_switched2'!
> 0.036735 load_mib2nut: trying classic method with 'raritan' mib
> 0.036741 su_find_info: "ups.model" found
> 0.036745 Testing ups.model using OID .1.3.6.1.4.1.13742.1.1.12.0
> 0.036749 Entering nut_snmp_get_str()
> 0.036756 nut_snmp_get(.1.3.6.1.4.1.13742.1.1.12.0)
> 0.036761 nut_snmp_walk(.1.3.6.1.4.1.13742.1.1.12.0)
> 0.036770 nut_snmp_walk: max. iteration = 1
>0.036785 load_mib2nut: testOID provided and doesn't match MIB
>'raritan'!
> 0.036790 load_mib2nut: trying classic method with 'baytech' mib
> 0.036793 su_find_info: "ups.model" found
>0.036798 Testing ups.model using OID
>.1.3.6.1.4.1.4779.1.3.5.2.1.24.1
> 0.036801 Entering nut_snmp_get_str()
> 0.036808 nut_snmp_get(.1.3.6.1.4.1.4779.1.3.5.2.1.24.1)
> 0.036812 nut_snmp_walk(.1.3.6.1.4.1.4779.1.3.5.2.1.24.1)
> 0.036816 nut_snmp_walk: max. iteration = 1
>0.036821 load_mib2nut: testOID provided and doesn't match MIB
>'baytech'!
> 0.036826 load_mib2nut: trying classic method with 'cpqpower' mib
> 0.036831 su_find_info: "ups.model" found
> 0.036835 Testing ups.model using OID .1.3.6.1.4.1.232.165.3.1.2.0
> 0.036839 Entering nut_snmp_get_str()
> 0.036849 nut_snmp_get(.1.3.6.1.4.1.232.165.3.1.2.0)
> 0.036855 nut_snmp_walk(.1.3.6.1.4.1.232.165.3.1.2.0)
> 0.036859 nut_snmp_walk: max. iteration = 1
>0.036866 load_mib2nut: testOID provided and doesn't match MIB
>'cpqpower'!
> 0.036870 load_mib2nut: trying classic method with 'bestpower' mib
> 0.036875 su_find_info: "ups.model" found
> 0.036878 Testing ups.model using OID .1.3.6.1.4.1.2947.1.1.2.0
> 0.036882 Entering nut_snmp_get_str()
> 0.036886 nut_snmp_get(.1.3.6.1.4.1.2947.1.1.2.0)
> 0.036889 nut_snmp_walk(.1.3.6.1.4.1.2947.1.1.2.0)
> 0.036895 nut_snmp_walk: max. iteration = 1
>0.036900 load_mib2nut: testOID provided and doesn't match MIB
>'bestpower'!
> 0.036906 load_mib2nut: trying classic method with 'cyberpower' mib
> 0.036911 su_find_info: "ups.model" found
>0.036915 Testing ups.model using OID .1.3.6.1.4.1.3808.1.1.1.1.1.1.0
> 0.036920 Entering nut_snmp_get_str()
> 0.036922 nut_snmp_get(.1.3.6.1.4.1.3808.1.1.1.1.1.1.0)
> 0.036926 nut_snmp_walk(.1.3.6.1.4.1.3808.1.1.1.1.1.1.0)
> 0.036930 nut_snmp_walk: max. iteration = 1
> 0.036937 load_mib2nut: testOID provided and doesn't match MIB
>'cyberpower'!
> 0.036945 load_mib2nut: trying classic method with 'delta_ups' mib
> 0.036951 su_find_info: "ups.model" found
> 0.036954 Testing ups.model using OID .1.3.6.1.4.1.2254.2.4.1.2.0
> 0.036957 Entering nut_snmp_get_str()
> 0.036962 nut_snmp_get(.1.3.6.1.4.1.2254.2.4.1.2.0)
> 0.036965 nut_snmp_walk(.1.3.6.1.4.1.2254.2.4.1.2.0)
> 0.036969 nut_snmp_walk: max. iteration = 1
>0.036976 load_mib2nut: testOID provided and doesn't match MIB
>'delta_ups'!
> 0.036980 load_mib2nut: trying classic method with 'xppc' mib
> 0.036987 su_find_info: "ups.model" found
> 0.036989 Testing ups.model using OID .1.3.6.1.4.1.935.1.1.1.1.1.1.0
> 0.036994 Entering nut_snmp_get_str()
> 0.036999 nut_snmp_get(.1.3.6.1.4.1.935.1.1.1.1.1.1.0)
> 0.037004 nut_snmp_walk(.1.3.6.1.4.1.935.1.1.1.1.1.1.0)
> 0.037010 nut_snmp_walk: max. iteration = 1
>0.037015 load_mib2nut: testOID provided and doesn't match MIB
>'xppc'!
> 0.037023 load_mib2nut: trying classic method with 'huawei' mib
> 0.037028 su_find_info: "ups.model" found
>0.037033 Testing ups.model using OID
>.1.3.6.1.4.1.2011.6.174.1.2.100.1.2.1
> 0.037036 Entering nut_snmp_get_str()
> 0.037041 nut_snmp_get(.1.3.6.1.4.1.2011.6.174.1.2.100.1.2.1)
> 0.037045 nut_snmp_walk(.1.3.6.1.4.1.2011.6.174.1.2.100.1.2.1)
> 0.037049 nut_snmp_walk: max. iteration = 1
>0.037053 load_mib2nut: testOID provided and doesn't match MIB
>'huawei'!
> 0.037058 load_mib2nut: trying classic method with 'ietf' mib
> 0.037064 su_find_info: "ups.model" found
> 0.037068 Testing ups.model using OID 1.3.6.1.2.1.33.1.1.2.0
> 0.037071 Entering nut_snmp_get_str()
> 0.037074 nut_snmp_get(1.3.6.1.2.1.33.1.1.2.0)
> 0.037076 nut_snmp_walk(1.3.6.1.2.1.33.1.1.2.0)
> 0.037079 nut_snmp_walk: max. iteration = 1
>0.037084 load_mib2nut: testOID provided and doesn't match MIB
>'ietf'!
> 0.037088 load_mib2nut: trying classic method with 'eaton_ats' mib
> 0.037104 su_find_info: unknown info type (ups.model)
> 0.037109 su_find_info: "device.model" found
> 0.037112 Testing device.model using OID .1.3.6.1.4.1.534.10.2.1.2.0
> 0.037116 Entering nut_snmp_get_str()
> 0.037124 nut_snmp_get(.1.3.6.1.4.1.534.10.2.1.2.0)
> 0.037129 nut_snmp_walk(.1.3.6.1.4.1.534.10.2.1.2.0)
> 0.037134 nut_snmp_walk: max. iteration = 1
>0.037142 load_mib2nut: testOID provided and doesn't match MIB
>'eaton_ats'!
> 0.037147 load_mib2nut: trying classic method with 'apc_ats' mib
> 0.037153 su_find_info: unknown info type (ups.model)
> 0.037157 su_find_info: "device.model" found
>0.037163 Testing device.model using OID .1.3.6.1.4.1.318.1.1.8.1.5.0
> 0.037167 Entering nut_snmp_get_str()
> 0.037178 nut_snmp_get(.1.3.6.1.4.1.318.1.1.8.1.5.0)
> 0.037182 nut_snmp_walk(.1.3.6.1.4.1.318.1.1.8.1.5.0)
> 0.037184 nut_snmp_walk: max. iteration = 1
>0.037190 load_mib2nut: testOID provided and doesn't match MIB
>'apc_ats'!
> 0.037195 load_mib2nut: trying classic method with 'ietf' mib
> 0.037201 su_find_info: "ups.model" found
> 0.037205 Testing ups.model using OID 1.3.6.1.2.1.33.1.1.2.0
> 0.037207 Entering nut_snmp_get_str()
> 0.037214 nut_snmp_get(1.3.6.1.2.1.33.1.1.2.0)
> 0.037216 nut_snmp_walk(1.3.6.1.2.1.33.1.1.2.0)
> 0.037222 nut_snmp_walk: max. iteration = 1
>0.037227 load_mib2nut: testOID provided and doesn't match MIB
>'ietf'!
> 0.037233 No supported device detected
>
>ups.conf:
>[tripplite1]
>driver="snmp-ups"
>port="poweralert-061036425037"
>snmp_version="v3"
>secLevel="authPriv"
>secName="localadmin"
>authProtocol="SHA"
>authPassword='password'
>privProtocol="AES"
>privPassword='password'
>
>root at gentooserver /etc/nut # nut-scanner -S -s poweralert-061036425037
>-l authPriv -u localadmin -w SHA -W 'password' -x AES -X 'password'
>Scanning SNMP bus.
>Error: unknown authtypeError generating Ku from authentication pass
>phrase
>
>_______________________________________________
>Nut-upsuser mailing list
>Nut-upsuser at alioth-lists.debian.net
>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
Are you using a packaged NUT or a build from Git sources? There were fixes in the past year about crypto for SNMPv3 which might be just this problem looking at symptoms.
So either way, interested to know if the fix works :)
https://github.com/networkupstools/nut/pull/850
Jim
--
Typos courtesy of K-9 Mail on my Android
More information about the Nut-upsuser
mailing list