<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Here comes the output:</div>

<div>
<div>root@abex:~# /lib/nut/snmp-ups -DDDD -a apc10001 -k<br/>
Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)<br/>
   0.000000     debug level is '4'<br/>
   0.000446     SNMP UPS driver : entering upsdrv_initups()<br/>
   0.000471     SNMP UPS driver : entering nut_snmp_init(snmp-ups)<br/>
   0.018439     SNMP UPS driver : entering load_mib2nut(apcc)<br/>
   0.018467     load_mib2nut: trying classic method with 'apcc' mib<br/>
   0.018478     Entering nut_snmp_get_str()<br/>
   0.018499     nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br/>
   0.035932     load_mib2nut: using apcc mib<br/>
   0.035963     su_find_info: "ups.model" found<br/>
   0.035980     Entering nut_snmp_get_str()<br/>
   0.036007     nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)<br/>
   0.055572     Detected Smart-UPS 1000 on host 10.100.200.30 (mib: apcc 1.1)<br/>
   0.055610     su_find_info: unknown info type (load.off.delay)<br/>
   0.055630     su_find_info: unknown info type (load.on.delay)<br/>
   0.055668     su_find_info: unknown info type (load.off.delay)<br/>
   0.055687     Initiating UPS shutdown<br/>
   0.055705     upsdrv_shutdown...<br/>
   0.055721     entering su_instcmd(shutdown.return, (null))<br/>
   0.055740     su_find_info: "shutdown.return" found<br/>
   0.055771     entering nut_snmp_set (.1.3.6.1.4.1.318.1.1.1.6.1.1.0, i, 2)<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/>
   0.098870     su_instcmd: cannot set value for shutdown.return<br/>
   0.098888     entering su_instcmd(shutdown.reboot, (null))<br/>
   0.098919     su_find_info: unknown info type (shutdown.reboot)<br/>
   0.098938     su_instcmd: shutdown.reboot unavailable<br/>
   0.098955     entering su_instcmd(load.off.delay, (null))<br/>
   0.098981     su_find_info: unknown info type (load.off.delay)<br/>
   0.098993     su_instcmd: load.off.delay unavailable<br/>
   0.099026     Shutdown failed!</div>

<div><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/>
What do you say?<br/>
-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;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 15. Mai 2013 um 14:34 Uhr<br/>
<b>Von:</b> "Charles Lepple" <clepple@gmail.com><br/>
<b>An:</b> lutz.niederer@gmx.net<br/>
<b>Cc:</b> nut-upsuser@lists.alioth.debian.org<br/>
<b>Betreff:</b> Re: [Nut-upsuser] APC AP9617 SNMP returns strange errors</div>

<div name="quoted-content">On May 15, 2013, at 8:18 AM, lutz.niederer@gmx.net wrote:<br/>
<br/>
> So maybe a problem with "90" vs 90 ?<br/>
<br/>
Probably. I don't have an SNMP-capable UPS here, so if you could send the logs from passing the debug flags the driver directly (/lib/nut/snmp-ups -DDDD -a apc10001 -k), it would be easier for me to follow along in the code. I recommend saving the log to a file (via 'script' or 'tee') and compressing it to keep the list post to a reasonable size.<br/>
<br/>
I suspect that the type is coming from the SNMP MIB definition. Could you also send the ups.conf file contents?<br/>
<br/>
--<br/>
Charles Lepple<br/>
clepple@gmail<br/>
<br/>
<br/>
 </div>
</div>
</div>
</div></div></body></html>