Running Network UPS Tools 2.7.4 on Ubuntu 18.04 and trying to work with an APC SMT2200 with an AP9631
$ sudo upsd -V
Network UPS Tools upsd 2.7.4
For some reason the upsd driver cannot seem to match any OID, either the ietf or the apcc ones.
The contents of the ups.conf file
[APC_UPS]
driver = snmp-ups
port = 192.168.42.63
snmp_version = v3
secLevel = authPriv
secName = shutdown_user
authPassword = *********
authProtocol = SHA
privPassword = *********
privProtocol = AES
desc = "APC UPS"
Running $ sudo /lib/nut/snmp-ups -DD -a APC_UPS gives
Network UPS Tools - Generic SNMP UPS driver 0.97 (2.7.4)
0.000000 debug level is '2'
0.000772 SNMP UPS driver: entering upsdrv_initups()
0.000790 SNMP UPS driver: entering nut_snmp_init(snmp-ups)
0.005638 Setting SNMP retries to 5
0.005658 Setting SNMP timeout to 1 second(s)
0.031828 SNMP UPS driver: entering load_mib2nut(auto)
0.031840 trying the new match_sysoid() method
0.049989 Can't get sysOID value
0.050026 load_mib2nut: trying classic method with 'apcc' mib
0.050034 Testing ups.model using OID .1.3.6.1.4.1.318.1.1.1.1.1.1.0
0.050087 load_mib2nut: testOID provided and doesn't match MIB 'apcc'!
0.050111 load_mib2nut: trying classic method with 'mge' mib
0.050238 Testing ups.model using OID .1.3.6.1.4.1.705.1.1.1.0
0.050306 load_mib2nut: testOID provided and doesn't match MIB 'mge'!
0.050393 load_mib2nut: trying classic method with 'netvision' mib
0.050422 Testing ups.model using OID .1.3.6.1.4.1.4555.1.1.1.1.1.1.0
0.050515 load_mib2nut: testOID provided and doesn't match MIB 'netvision'!
0.050540 load_mib2nut: trying classic method with 'pw' mib
0.050576 Testing ups.model using OID 1.3.6.1.4.1.534.1.1.2.0
0.050605 load_mib2nut: testOID provided and doesn't match MIB 'pw'!
0.050645 load_mib2nut: trying classic method with 'pxgx_ups' mib
0.050657 Testing ups.model using OID 1.3.6.1.4.1.534.1.1.2.0
0.050672 load_mib2nut: testOID provided and doesn't match MIB 'pxgx_ups'!
0.050686 load_mib2nut: trying classic method with 'aphel_genesisII' mib
0.050695 Testing ups.model using OID .1.3.6.1.4.1.17373.3.1.1.0
0.050712 load_mib2nut: testOID provided and doesn't match MIB 'aphel_genesisII'!
0.050723 load_mib2nut: trying classic method with 'aphel_revelation' mib
0.050732 Testing ups.model using OID .1.3.6.1.4.1.534.6.6.6.1.1.12.0
0.050744 load_mib2nut: testOID provided and doesn't match MIB 'aphel_revelation'!
0.050755 load_mib2nut: trying classic method with 'eaton_epdu' mib
0.050764 Testing ups.model using OID 1.3.6.1.4.1.534.6.6.7.1.2.1.2.0
0.050782 load_mib2nut: testOID provided and doesn't match MIB 'eaton_epdu'!
0.050792 load_mib2nut: trying classic method with 'pulizzi_switched1' mib
0.050801 Testing ups.model using OID .1.3.6.1.4.1.20677.2.1.1.0
0.050814 load_mib2nut: testOID provided and doesn't match MIB 'pulizzi_switched1'!
0.050824 load_mib2nut: trying classic method with 'pulizzi_switched2' mib
0.050833 Testing ups.model using OID .1.3.6.1.4.1.20677.2.1.1.0
0.050845 load_mib2nut: testOID provided and doesn't match MIB 'pulizzi_switched2'!
0.050855 load_mib2nut: trying classic method with 'raritan' mib
0.050864 Testing ups.model using OID .1.3.6.1.4.1.13742.1.1.12.0
0.050876 load_mib2nut: testOID provided and doesn't match MIB 'raritan'!
0.050890 load_mib2nut: trying classic method with 'baytech' mib
0.050899 Testing ups.model using OID .1.3.6.1.4.1.4779.1.3.5.2.1.24.1
0.050912 load_mib2nut: testOID provided and doesn't match MIB 'baytech'!
0.050922 load_mib2nut: trying classic method with 'cpqpower' mib
0.050931 Testing ups.model using OID .1.3.6.1.4.1.232.165.3.1.2.0
0.050942 load_mib2nut: testOID provided and doesn't match MIB 'cpqpower'!
0.050952 load_mib2nut: trying classic method with 'bestpower' mib
0.050962 Testing ups.model using OID .1.3.6.1.4.1.2947.1.1.2.0
0.050973 load_mib2nut: testOID provided and doesn't match MIB 'bestpower'!
0.050989 load_mib2nut: trying classic method with 'cyberpower' mib
0.050999 Testing ups.model using OID .1.3.6.1.4.1.3808.1.1.1.1.1.1.0
0.051011 load_mib2nut: testOID provided and doesn't match MIB 'cyberpower'!
0.051021 load_mib2nut: trying classic method with 'delta_ups' mib
0.051030 Testing ups.model using OID .1.3.6.1.4.1.2254.2.4.1.2.0
0.051042 load_mib2nut: testOID provided and doesn't match MIB 'delta_ups'!
0.051052 load_mib2nut: trying classic method with 'xppc' mib
0.051061 Testing ups.model using OID .1.3.6.1.4.1.935.1.1.1.1.1.1.0
0.051073 load_mib2nut: testOID provided and doesn't match MIB 'xppc'!
0.051087 load_mib2nut: trying classic method with 'huawei' mib
0.051096 Testing ups.model using OID .1.3.6.1.4.1.2011.6.174.1.2.100.1.2.1
0.051108 load_mib2nut: testOID provided and doesn't match MIB 'huawei'!
0.051118 load_mib2nut: trying classic method with 'ietf' mib
0.051127 Testing ups.model using OID 1.3.6.1.2.1.33.1.1.2.0
0.051140 load_mib2nut: testOID provided and doesn't match MIB 'ietf'!
0.051149 load_mib2nut: trying classic method with 'eaton_ats' mib
0.051160 Testing device.model using OID .1.3.6.1.4.1.534.10.2.1.2.0
0.051173 load_mib2nut: testOID provided and doesn't match MIB 'eaton_ats'!
0.051182 load_mib2nut: trying classic method with 'apc_ats' mib
0.051198 Testing device.model using OID .1.3.6.1.4.1.318.1.1.8.1.5.0
0.051211 load_mib2nut: testOID provided and doesn't match MIB 'apc_ats'!
0.051220 load_mib2nut: trying classic method with 'ietf' mib
0.051230 Testing ups.model using OID 1.3.6.1.2.1.33.1.1.2.0
0.051241 load_mib2nut: testOID provided and doesn't match MIB 'ietf'!
0.051251 No supported device detected
Yet running snmpwalk with the same values for authPassword and privPassword works
for the IETF OID
$ snmpwalk -v3 -u shutdown_user -l authpriv -a SHA -A ********* -x AES -X ********* 192.168.42.63 1.3.6.1.2.1.33.1.1.2.0
iso.3.6.1.2.1.33.1.1.2.0 = STRING: "Smart-UPS 2200"
and for the APCC OID
$ snmpwalk -c shutdown_user -v3 -u shutdown_user -l authpriv -a SHA -A ********* -x AES -X ********* 192.168.42.63 .1.3.6.1.4.1.318.1.1.1.1.1.1.0
iso.3.6.1.4.1.318.1.1.1.1.1.1.0 = STRING: "Smart-UPS 2200"
Why would getting the OID fail when snmpwalk can retrieve it?
Running Network UPS Tools 2.7.4 on Ubuntu 18.04 and trying to work with an APC SMT2200 with an AP9631
For some reason the upsd driver cannot seem to match any OID, either the ietf or the apcc ones.
The contents of the ups.conf file
Running
$ sudo /lib/nut/snmp-ups -DD -a APC_UPSgivesYet running snmpwalk with the same values for authPassword and privPassword works
for the IETF OID
and for the APCC OID
Why would getting the OID fail when snmpwalk can retrieve it?