Hi Tim<br><br><div class="gmail_quote">2013/1/29 Tim Rice <span dir="ltr"><<a href="mailto:tim@multitalents.net" target="_blank">tim@multitalents.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
nut-2.6.5<br>
Scientific Linux 6.3<br>
APC AP9630 management card<br>
<br>
My basic question is, does nut's SNMPv3 implementation work?<br>
<br>
I have this in /etc/ups/ups.conf<br>
......<br>
[tfapc01]<br>
        driver = snmp-ups<br>
        port = <a href="http://tfapc01.testfest.ixorg.org" target="_blank">tfapc01.testfest.ixorg.org</a><br>
        mibs = apcc<br></blockquote><div><br>drop the above field: mibs is autodetected, and is blocking here<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        snmp_version = v3<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        secLevel = authPriv<br>
        secName = tfsnmpprof1<br>
        authPassword = ralow6moHet7zoboP8<br>
        privPassword = tuseL8Pakaz9degim7<br></blockquote><div><br>when sending to a public mailing list, prefer to trim passwds ;)<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        authProtocol=MD5<br>
        privProtocol=AES<br>
        desc = "APC SU700 SNMP v3 device, with the highest security level"<br>
......<br>
<br>
Now I test<br>
/sbin/snmp-ups -DDD -a tfapc01<br>
Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5)<br>
   0.000000     debug level is '3'<br>
   0.000600     SNMP UPS driver : entering upsdrv_initups()<br>
   0.000618     SNMP UPS driver : entering nut_snmp_init(snmp-ups)<br>
   0.047231     SNMP UPS driver : entering load_mib2nut(apcc)<br>
   0.047243     load_mib2nut: trying classic method with 'apcc' mib<br>
   0.047248     Entering nut_snmp_get_str()<br>
   0.047252     nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br>
   0.051083     Unknown mibs value: apcc<br>
<br>
Doesn't look good. But if we use snmpget from the net-snmp package it works.<br>
<br>
snmpget -Cf -v 3 -u tfsnmpprof1 -l authPriv -a MD5 -A ralow6moHet7zoboP8 \<br>
-x AES -X tuseL8Pakaz9degim7 tfapc01 .1.3.6.1.4.1.318.1.1.1.1.1.1.0<br>
No log handling enabled - turning on stderr logging<br>
SNMPv2-SMI::enterprises.318.1.1.1.1.1.1.0 = STRING: "SMART-UPS 700"<br>
<br>
Now if we drop the "snmp_version" line from ups.conf and SNMPv1 is enabled<br>
on the APC with default public read private write, NUT will happily use<br>
its defaults to talk to the APC using v1 even though you have configured<br>
the ups.conf settings for v3 following documentation examples.<br>
<br>
Note: contrary to the documentation saying that valid values for<br>
snmp_version are v1 or v2c, if we look at line 348 of<br>
nut-2.6.5/drivers/snmp-ups.c we see that v3 is also a valid choice.<br></blockquote><div><br>thanks for pointing it, it's now fixed (svn r3854)<br><br>cheers,<br>arno<br></div></div>