<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>And this is the tcpdump output from the snmp-ups command:</div>

<div>
<div>15:22:22.063065 IP 10.100.200.1.43571 > 10.100.200.30.161:  C=private GetRequest(34)  .1.3.6.1.4.1.318.1.1.1.1.1.1.0<br/>
15:22:22.080085 IP 10.100.200.30.161 > 10.100.200.1.43571:  C=private GetResponse(52)  .1.3.6.1.4.1.318.1.1.1.1.1.1.0="Smart-UPS 1000"<br/>
15:22:22.080286 IP 10.100.200.1.43571 > 10.100.200.30.161:  C=private GetRequest(34)  .1.3.6.1.4.1.318.1.1.1.1.1.1.0<br/>
15:22:22.098435 IP 10.100.200.30.161 > 10.100.200.1.43571:  C=private GetResponse(52)  .1.3.6.1.4.1.318.1.1.1.1.1.1.0="Smart-UPS 1000"<br/>
15:22:22.098717 IP 10.100.200.1.43571 > 10.100.200.30.161:  C=private SetRequest(35)  .1.3.6.1.4.1.318.1.1.1.6.1.1.0=2<br/>
15:22:22.135136 IP 10.100.200.30.161 > 10.100.200.1.43571:  C=private GetResponse(35)  genErr@1 .1.3.6.1.4.1.318.1.1.1.6.1.1.0=2</div>

<div> </div>

<div>What don't understand is that many people are using this card or the AP9618 card...</div>

<div>None of them should have been able to set those values or had the ups shutdown successfully.  Strange.....</div>

<div>-lutzn</div>

<div> </div>
</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On May 15, 2013, at 8:50 AM, lutz.niederer@gmx.net wrote:
<div name="quoted-content"><br/>
> I tried to set "Minimum battery level for restart after power off (percent)" to 90. And this gave "90" as mentioned 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).<br/>
<br/>
I agree with that assessment, but what about the error for the following call?<br/>
<br/>
0.055771 entering nut_snmp_set (.1.3.6.1.4.1.318.1.1.1.6.1.1.0, i, 2)<br/>
<br/>
0.098838 [apc10001] nut_snmp_set: can't set .1.3.6.1.4.1.318.1.1.1.6.1.1.0: Error in packet: (genError) A general failure occured<br/>
<br/>
That seems to be specifying an integer, which agrees with this:<br/>
<br/>
<<a href="http://www.mibdepot.com/cgi-bin/getmib3.cgi?win=mib_a&i=1&n=PowerNet-MIB&r=dell&f=powernet.mib&v=v1&t=sca&o=upsBasicControlConserveBattery" target="_blank">http://www.mibdepot.com/cgi-bin/getmib3.cgi?win=mib_a&i=1&n=PowerNet-MIB&r=dell&f=powernet.mib&v=v1&t=sca&o=upsBasicControlConserveBattery</a>><br/>
<br/>
Does this call to nut_snmp_set() not result in a proper packet as seen in tcpdump?<br/>
<br/>
Since you're using Debian, and this bug would be present in the latest package version as well, I would recommend filing a bug there (and post a link to the bug here). That will make sure it doesn't fall through the cracks. We can continue to debug here as well.<br/>
<br/>
It is also possible to compile NUT from source with the same options that Debian uses, and just swap in the snmp-ups driver for testing.<br/>
<br/>
--<br/>
Charles Lepple<br/>
clepple@gmail<br/>
<br/>
<br/>
 </div>
</div>
</div>
</div></div></body></html>