<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Is NUT using the same SNMP v3 user as your SNMP Set or a different one?</p>
<p>If it is a different one (e.g. an SNMP v1 or v2c string) does that user / community string have read/write access?</p>
<p><br>
</p>
<p>tcpdump to listen for packets across UDP 161 is one way to check what is actually being sent.
<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p class="x_MsoNormal" style="line-height:120%; text-autospace:none"><span style="color:black; letter-spacing:-0.05pt; font-family:"Calibri",sans-serif,serif,"EmojiFont"">Thank you,</span></p>
David Zomaya</div>
<div dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
Tripp Lite<br>
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nut-upsuser <nut-upsuser-bounces+david_zomaya=tripplite.com@alioth-lists.debian.net> on behalf of Lee Damon <nomad@ee.washington.edu><br>
<b>Sent:</b> Wednesday, April 29, 2020 5:00:16 PM<br>
<b>To:</b> nut-upsuser Mailing List<br>
<b>Subject:</b> [EXTERNAL] [Nut-upsuser] SNMP shutdown timing out</font>
<div> </div>
</div>
<div><font color="#C11B17" face="verdana,arial,sans-serif" size="2"><span>This is an
<b>EXTERNAL</b> email. Please take a moment and think before clicking any links or opening any attachments from this email. If suspicious, please forward to ishelpdesk@tripplite.com for review.</span></font>
<hr>
<div dir="ltr">I'm in the process of trying to get NUT to manage an APC SmartUPS.
<div><br>
</div>
<div>Monitoring of the UPS is working fine:</div>
<div>$ upsc nutdev1@localhost</div>
Init SSL without certificate database<br>
ambient.1.humidity.alarm.high: 60.00<br>
ambient.1.humidity.alarm.low: 30.00<br>
ambient.1.temperature.alarm.high: 40.00<br>
ambient.1.temperature.alarm.low: 10.00<br>
battery.charge: 94.00<br>
battery.charge.restart: 0<br>
battery.current: 0.00<br>
battery.date: 03/14/20<br>
battery.packs: 0.00<br>
battery.packs.bad: -1.00<br>
battery.runtime: 5160.00<br>
battery.runtime.low: 120<br>
battery.voltage: 27.00<br>
battery.voltage.nominal: -1.00<br>
device.mfr: APC<br>
device.model: SMART-UPS 1400<br>
device.serial: WS9831004667<br>
device.type: ups<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__driver.name&d=DwMFaQ&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=VdKSS_Vk98WT0ADZ-mQe_3zCfrLacAAuMS7JSj5wn1w&s=hM67G_Mcn7oW5yo4o44Na9wyw26mxM8hKXFExeGyhJQ&e=">driver.name</a>:
snmp-ups<br>
driver.parameter.authProtocol: MD5<br>
driver.parameter.mibs: apcc<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: 192.5.37.191<br>
driver.parameter.privProtocol: DES<br>
driver.parameter.secLevel: authPriv<br>
driver.parameter.synchronous: no<br>
driver.version: 2.7.4<br>
driver.version.data: apcc MIB 1.2<br>
driver.version.internal: 0.97<br>
input.frequency: 60.00<br>
input.sensitivity: high<br>
input.transfer.high: 132<br>
input.transfer.low: 103<br>
input.transfer.reason: selfTest<br>
input.voltage: 120.90<br>
input.voltage.maximum: 122.20<br>
input.voltage.minimum: 120.20<br>
output.current: 0.00<br>
output.frequency: 60.00<br>
output.voltage: 120.90<br>
output.voltage.nominal: 115<br>
ups.delay.shutdown: 20<br>
ups.delay.start: 0<br>
ups.firmware: 70.11.D<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ups.id&d=DwMFaQ&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=VdKSS_Vk98WT0ADZ-mQe_3zCfrLacAAuMS7JSj5wn1w&s=Cv5z1Xm7dspkGCX9gosuUR3R9b6cDZLJnumKkJ4s1Ms&e=">ups.id</a>: apcups<br>
ups.load: 14.00<br>
ups.mfr: APC<br>
ups.mfr.date: 07/28/98<br>
ups.model: SMART-UPS 1400<br>
ups.serial: WS9831004667<br>
ups.status: OL<br>
ups.temperature: 24.70<br>
ups.test.date: 04/29/2020<br>
ups.test.result: Ok<br>
<div><br>
</div>
<div>I can use snmpset to halt the UPS.</div>
<div> snmpset -v 3 -a MD5 -A NutScan@Password43LongerWord -l authPriv -u nut -x DES -X NutScan@Password43LongerWord apcups SNMPv2-SMI::enterprises.318.1.1.1.6.1.1.0 i 2</div>
<div><br>
</div>
<div>(Passwords are temporary, I don't care if they leak.)</div>
<div><br>
</div>
<div>I am aware of the note in the MIB that states "Setting this variable to turnUpsOffToConserveBattery(2) causes a UPS on battery to be put into 'sleep' mode. The UPS will turn back on when utility power is restored. Attempting to turn off a UPS that is
not on battery will result in a badValue error." so tests are being done with the UPS on battery.</div>
<div><br>
</div>
<div>However, when I try to tell it to shut down the UPS it fails with a timeout.</div>
<div><br>
</div>
<div>$ sudo snmp-ups -DDDDDDD -a nutdev1 -k<br>
Network UPS Tools - Generic SNMP UPS driver 0.97 (2.7.4)<br>
0.000000 send_to_all: SETINFO driver.parameter.port "192.5.37.191"<br>
0.000027 send_to_all: SETINFO driver.parameter.mibs "apcc"<br>
0.000044 send_to_all: SETINFO driver.parameter.secLevel "authPriv"<br>
0.000049 send_to_all: SETINFO driver.parameter.authProtocol "MD5"<br>
0.000067 send_to_all: SETINFO driver.parameter.privProtocol "DES"<br>
0.000071 debug level is '7'<br>
0.001365 SNMP UPS driver: entering upsdrv_initups()<br>
0.001371 SNMP UPS driver: entering nut_snmp_init(snmp-ups)<br>
0.008570 Setting SNMP retries to 5<br>
0.008575 Setting SNMP timeout to 1 second(s)<br>
0.008605 SNMP UPS driver: entering load_mib2nut(apcc)<br>
0.008610 load_mib2nut: trying classic method with 'apcc' mib<br>
0.008613 su_find_info: "ups.model" found<br>
0.008615 Testing ups.model using OID .1.3.6.1.4.1.318.1.1.1.1.1.1.0<br>
0.008617 Entering nut_snmp_get_str()<br>
0.008619 nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br>
0.008637 nut_snmp_walk(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br>
0.008640 nut_snmp_walk: max. iteration = 1<br>
0.027623 load_mib2nut: testOID provided and matches MIB 'apcc'!<br>
0.027636 load_mib2nut: using apcc mib<br>
0.027639 su_find_info: "ups.model" found<br>
0.027641 Entering nut_snmp_get_str()<br>
0.027642 nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br>
0.027644 nut_snmp_walk(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br>
0.027646 nut_snmp_walk: max. iteration = 1<br>
0.051176 Detected SMART-UPS 1400 on host 192.5.37.191 (mib: apcc 1.2)<br>
0.051192 su_find_info: unknown info type (load.off.delay)<br>
0.051195 su_find_info: unknown info type (load.on.delay)<br>
0.051197 su_find_info: unknown info type (load.off.delay)<br>
0.051199 Initiating UPS shutdown<br>
0.051201 upsdrv_shutdown...<br>
0.051203 Unknown template type: shutdown.return<br>
0.051204 entering su_instcmd(shutdown.return, (null))<br>
0.051207 su_find_info: "shutdown.return" found<br>
0.051209 entering nut_snmp_set(.1.3.6.1.4.1.318.1.1.1.6.1.1.0, i, 2)<br>
6.059576 [nutdev1] nut_snmp_set: can't set .1.3.6.1.4.1.318.1.1.1.6.1.1.0: Timeout<br>
6.059591 su_instcmd: cannot set value for shutdown.return<br>
6.059593 Unknown template type: shutdown.reboot<br>
6.059595 entering su_instcmd(shutdown.reboot, (null))<br>
6.059599 su_find_info: unknown info type (shutdown.reboot)<br>
6.059601 su_instcmd: shutdown.reboot unavailable<br>
6.059602 Unknown template type: load.off.delay<br>
6.059603 entering su_instcmd(load.off.delay, (null))<br>
6.059606 su_find_info: unknown info type (load.off.delay)<br>
6.059608 su_instcmd: load.off.delay unavailable<br>
6.059609 Shutdown failed!<br>
</div>
<div><br>
</div>
<div>This *might* be related to the question I asked yesterday about nut-scanner but given the difference in error reported (nut-scanner was complaining about auth) I don't think so.</div>
<div><br>
</div>
<div>I'm using nut packages from EPEL 8 for all of this.</div>
<div><br>
</div>
<div>I've set SELinux to permissive (even tried 'disabled') and it doesn't appear to be blocking anything.</div>
<div><br>
</div>
<div>Anyone have any suggestions for what I can try next?</div>
<div><br>
</div>
<div>nomad</div>
</div>
</div>
<hr>
<font color="grey" face="calibri">This message is for the addressee's use only. It may contain confidential information. If you receive this message in error, please delete it and notify the sender. Tripp Lite disclaims all warranties and liabilities, and assumes
no responsibility for viruses which may infect an email sent to you from Tripp Lite and which damage your electronic systems or information. It is your responsibility to maintain virus detection systems to prevent damage to your electronic systems and information.
</font>
</body>
</html>