Package: nut
Version: 2.6.4-1
Severity: normal

Unable to set Values such as "Minimum battery level for restart after power off 
(percent)" on an APC Smart-UPS with AP9617.  Can set battery change date.

I tried to set "Minimum battery level for restart after power off (percent)" to 
90. And this gave "90".  See below.
I saw in apc-mib.c that the type for this is declared as ST_FLAG_STRING. This 
is abolutely no string (so no 's' but 'i' would be correct).

Here comes the tcpdump:
 snmpset -c private -v 1 10.100.200.30 1.3.6.1.4.1.318.1.1.1.5.2.6.0 i 90  
makes this:
14:01:02.725830 IP 10.100.200.1.40893 > 10.100.200.30.161:  C=private 
SetRequest(35)  .1.3.6.1.4.1.318.1.1.1.5.2.6.0=90
14:01:02.759972 IP 10.100.200.30.161 > 10.100.200.1.40893:  C=private 
GetResponse(35)  .1.3.6.1.4.1.318.1.1.1.5.2.6.0=90
 
And the same with nut's upsset.cgi makes this:
13:58:40.196924 IP 10.100.200.1.38704 > 10.100.200.30.161:  C=private 
SetRequest(36)  .1.3.6.1.4.1.318.1.1.1.5.2.6.0="90"
13:58:40.223239 IP 10.100.200.30.161 > 10.100.200.1.38704:  C=private 
GetResponse(36)  badValue@1 .1.3.6.1.4.1.318.1.1.1.5.2.6.0="90"
 
So maybe a problem with "90" vs 90 ?

>From the sources I saw that the same is true for the latest version of nut.

Please see this thread on nut ml 
http://lists.alioth.debian.org/pipermail/nut-upsuser/2013-May/008400.html


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nut depends on:
ii  nut-client  2.6.4-1
ii  nut-server  2.6.4-1

nut recommends no packages.

nut suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to