<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:879826159;
mso-list-type:hybrid;
mso-list-template-ids:-1926563326 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1
{mso-list-id:2049986228;
mso-list-type:hybrid;
mso-list-template-ids:2078560480 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;}
@list l1:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:54.0pt;
text-indent:-18.0pt;}
@list l1:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:90.0pt;
text-indent:-9.0pt;}
@list l1:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:126.0pt;
text-indent:-18.0pt;}
@list l1:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:162.0pt;
text-indent:-18.0pt;}
@list l1:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:198.0pt;
text-indent:-9.0pt;}
@list l1:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:234.0pt;
text-indent:-18.0pt;}
@list l1:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:270.0pt;
text-indent:-18.0pt;}
@list l1:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:306.0pt;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello NUT Team!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am testing the early shutdowns in NUT 2.6.5-1 package for Windows (Windows 7 x64).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My configuration files:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>upsmon.conf<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>RUN_AS_USER upsmon<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>MONITOR upsa@192.168.10.200 1 upsmon pass master<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>MINSUPPLIES 1<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>SHUTDOWNCMD "/sbin/shutdown -h +0"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOTIFYCMD "upssched.exe"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>POLLFREQ 5<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>POLLFREQALERT 5<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>HOSTSYNC 15<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>DEADTIME 15<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>POWERDOWNFLAG "C:\\NUT\\killpower"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOTIFYMSG COMMOK "Communications with UPS %s established"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOTIFYMSG COMMBAD "Communications with UPS %s lost"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOTIFYFLAG COMMOK SYSLOG+EXEC+WALL<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOTIFYFLAG COMMBAD SYSLOG+EXEC+WALL<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>RBWARNTIME 43200<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>NOCOMMWARNTIME 300<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>FINALDELAY 5<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>upssched.conf<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>CMDSCRIPT "cmd.exe -C C:\\NUT\\1.cmd"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>PIPEFN "C:\\NUT\\pipefn.lock"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>LOCKFN "C:\\NUT\\lockfn.lock"<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>AT COMMBAD upsa@192.168.10.200 START-TIMER upslost 10<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>AT COMMOK upsa@192.168.10.200 CANCEL-TIMER upslost<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>1.cmd<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>echo %1 > 1.txt<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have found some issues I would like to report.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>1. NOTIFYCMD parameter is not specified<o:p></o:p></p><p class=MsoNormal>NUT doesn’t start UPSSCHED tool (as I remember, Linux version do it by default).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2. PIPEFN parameter is invalid (its value is a file in non-existed directory)<o:p></o:p></p><p class=MsoNormal>UPSMON logs an error:<o:p></o:p></p><p class=MsoNormal> 25.222443 pollups: upsa@192.168.10.200<o:p></o:p></p><p class=MsoNormal> 25.229443 get_var: upsa@192.168.10.200 / status<o:p></o:p></p><p class=MsoNormal> 25.238444 Poll UPS [upsa@192.168.10.200] failed - Data stale<o:p></o:p></p><p class=MsoNormal> 25.248444 Current power value: 1<o:p></o:p></p><p class=MsoNormal> 25.254444 Minimum power value: 1<o:p></o:p></p><p class=MsoNormal>Failed to connect to parent and failed to create parent: No error [The system cannot find the path specified. ]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>There is no proper record in Event Viewer. 2.6.0-1 version writes different warnings and errors there. They helps to understand what is wrong.<o:p></o:p></p><p class=MsoNormal>That is quite difficult now because of total silence.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>3. All parameters are valid<o:p></o:p></p><p class=MsoNormal>Two instances of UPSSCHED.EXE are starting (why two?) and they are not stopping (I was waiting about 5 minutes). CMDSCRIPT is not executed, I cannot find its activity.<o:p></o:p></p><p class=MsoNormal>Moreover, these processes are not stopped when Network UPS Tools service is stopped.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>UPSMON outputs a lot of strings like “read confirmation failed, trying again”, “addchar: discarding invalid character (0x00)!”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> 40.276304 pollups: upsa@192.168.10.200<o:p></o:p></p><p class=MsoNormal> 40.281304 get_var: upsa@192.168.10.200 / status<o:p></o:p></p><p class=MsoNormal> 40.289305 Poll UPS [upsa@192.168.10.200] failed - Data stale<o:p></o:p></p><p class=MsoNormal> 40.298305 Current power value: 1<o:p></o:p></p><p class=MsoNormal> 40.303305 Minimum power value: 1<o:p></o:p></p><p class=MsoNormal>read confirmation failed, trying again<o:p></o:p></p><p class=MsoNormal>read confirmation got []<o:p></o:p></p><p class=MsoNormal>read confirmation failed, trying again<o:p></o:p></p><p class=MsoNormal> 45.307592 pollups: upsa@192.168.10.200<o:p></o:p></p><p class=MsoNormal> 45.312592 get_var: upsa@192.168.10.200 / status<o:p></o:p></p><p class=MsoNormal> 45.319592 Poll UPS [upsa@192.168.10.200] failed - Data stale<o:p></o:p></p><p class=MsoNormal> 45.328593 Current power value: 1<o:p></o:p></p><p class=MsoNormal> 45.333593 Minimum power value: 1<o:p></o:p></p><p class=MsoNormal>read confirmation failed, trying again<o:p></o:p></p><p class=MsoNormal>read confirmation failed, trying again<o:p></o:p></p><p class=MsoNormal>read confirmation failed, trying again<o:p></o:p></p><p class=MsoNormal>read confirmation got []<o:p></o:p></p><p class=MsoNormal>Timer daemon started<o:p></o:p></p><p class=MsoNormal>addchar: discarding invalid character (0x00)!<o:p></o:p></p><p class=MsoNormal>addchar: discarding invalid character (0x00)!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sometimes I see the strings with garbage inside, like repeated using of released memory.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Denis<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>