<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ups shutdown script in Servers - General</title>
    <link>https://community.hpe.com/t5/servers-general/ups-shutdown-script/m-p/6431450#M7652</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying nearly everything at the moment....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HP 1500 G3 connected to a 2008 R2 Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a script which is shutting down two servers. One of this servers is the management server. But I think this doesn' matter at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first I tried to use an "old school" batch file (shutdown /s /....) - script works out of the HP Power Protector Software but doesn't have any effect within the software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I tried the java script thing. This also doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beginning with the example script it looks this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UserScript = { &amp;nbsp; name: "MyScript", &amp;nbsp; enabled: false,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set this property to true to enable the script. &amp;nbsp; onEvent: true,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If true the script is called each time an event occurs. &amp;nbsp; delay: 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This property can be used to delay first execution of the action in milliseconds. &amp;nbsp; interval: 10000,&amp;nbsp;&amp;nbsp;&amp;nbsp; // and every 10s from that &amp;nbsp; onStart: function() // Startup function (optional) &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; exec("C:\Windows\System32\shutdown.exe /s /t 30 /m &lt;A href="https://community.hpe.com/t5/forums/replypage/board-id/itrc-17/message-id/" target="_blank"&gt;\\&amp;lt;server&amp;gt;&lt;/A&gt;"); &amp;nbsp; }, &amp;nbsp; action: function()&amp;nbsp; // Script action definition &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;exec("C:\Windows\System32\shutdown.exe /s /t 30 /m &lt;A href="https://community.hpe.com/t5/forums/replypage/board-id/itrc-17/message-id/" target="_blank"&gt;\\&amp;lt;server&amp;gt;&lt;/A&gt;"); &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }, &amp;nbsp; onStop: function() // Ender function (optional) &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; // Use this place to insert finalization code &amp;nbsp; } }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to start my original batch file (with some echo command for the log file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm completely stuck now. Please give advice, thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Stephan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This post has been split off from other thread, and moved to&amp;nbsp;&lt;SPAN&gt;Servers &amp;gt; general. - Hp Forum Moderator&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2014 01:43:49 GMT</pubDate>
    <dc:creator>reitzstephan</dc:creator>
    <dc:date>2014-04-03T01:43:49Z</dc:date>
    <item>
      <title>ups shutdown script</title>
      <link>https://community.hpe.com/t5/servers-general/ups-shutdown-script/m-p/6431450#M7652</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying nearly everything at the moment....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HP 1500 G3 connected to a 2008 R2 Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a script which is shutting down two servers. One of this servers is the management server. But I think this doesn' matter at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first I tried to use an "old school" batch file (shutdown /s /....) - script works out of the HP Power Protector Software but doesn't have any effect within the software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I tried the java script thing. This also doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beginning with the example script it looks this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UserScript = { &amp;nbsp; name: "MyScript", &amp;nbsp; enabled: false,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set this property to true to enable the script. &amp;nbsp; onEvent: true,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If true the script is called each time an event occurs. &amp;nbsp; delay: 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This property can be used to delay first execution of the action in milliseconds. &amp;nbsp; interval: 10000,&amp;nbsp;&amp;nbsp;&amp;nbsp; // and every 10s from that &amp;nbsp; onStart: function() // Startup function (optional) &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; exec("C:\Windows\System32\shutdown.exe /s /t 30 /m &lt;A href="https://community.hpe.com/t5/forums/replypage/board-id/itrc-17/message-id/" target="_blank"&gt;\\&amp;lt;server&amp;gt;&lt;/A&gt;"); &amp;nbsp; }, &amp;nbsp; action: function()&amp;nbsp; // Script action definition &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;exec("C:\Windows\System32\shutdown.exe /s /t 30 /m &lt;A href="https://community.hpe.com/t5/forums/replypage/board-id/itrc-17/message-id/" target="_blank"&gt;\\&amp;lt;server&amp;gt;&lt;/A&gt;"); &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }, &amp;nbsp; onStop: function() // Ender function (optional) &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; // Use this place to insert finalization code &amp;nbsp; } }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to start my original batch file (with some echo command for the log file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm completely stuck now. Please give advice, thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Stephan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This post has been split off from other thread, and moved to&amp;nbsp;&lt;SPAN&gt;Servers &amp;gt; general. - Hp Forum Moderator&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 01:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/ups-shutdown-script/m-p/6431450#M7652</guid>
      <dc:creator>reitzstephan</dc:creator>
      <dc:date>2014-04-03T01:43:49Z</dc:date>
    </item>
  </channel>
</rss>

