<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[(SOLVED) System.Shutdown with delay]]></title><description><![CDATA[<p dir="auto">Hi<br />
We observe a UPS System so we created an event to shutdown a Windows System. I use the Object Tool "&amp;Shutdown system" to shutdown the node with the Windows agent, if the power fails. This works verry well.</p>
<p dir="auto">But how can I delay the shutdown? I´ll shutdown the system with a delay of 5 Minutes and another System with a delay of 8 Minutes.</p>
<p dir="auto">Any Idea?</p>
<p dir="auto">Sincerly Lars</p>
]]></description><link>https://forum.netxms.org/topic/691/solved-system.shutdown-with-delay</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:19:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/691.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jul 2009 11:13:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to (SOLVED) System.Shutdown with delay on Mon, 20 Jul 2009 10:23:33 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I found the error.</p>
<p dir="auto">My functional agent config:</p>
<pre><code>#System Shutdown with delay
EnableActions = yes
Action = System.ShutdownWithDelay:shutdown.exe -s -c "PowerFail" -t $1
Action = System.ShutdownAbort:shutdown.exe -a
</code></pre>
<p dir="auto">I added the abort command for Shutdown.</p>
]]></description><link>https://forum.netxms.org/post/3269</link><guid isPermaLink="true">https://forum.netxms.org/post/3269</guid><dc:creator><![CDATA[Lars.Weimar]]></dc:creator><pubDate>Mon, 20 Jul 2009 10:23:33 GMT</pubDate></item><item><title><![CDATA[Reply to (SOLVED) System.Shutdown with delay on Mon, 20 Jul 2009 08:14:31 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, it doesen´t work. I added the line above, but the system doesn´t shut down. If I tried the embedded "System.Shutdown" it works fine. The System shutdown immediately.</p>
<p dir="auto">I tried the following Setings in nxagentd.conf:</p>
<pre><code>#
# NetXMS agent configuration file
# Created by agent installer at Wed Jul 15 10:58:04 2009
#
#System Shutdown with delay
Action = System.ShutdownWithDelay:shutdown.exe /t $1
MasterServers = 192.168.5.250
LogFile = C:\NetXMS\netxms.log
FileStore = C:\NetXMS\var
SubAgent = winperf.nsm
SubAgent = wmi.nsm
SubAgent = ups.nsm
</code></pre>
<p dir="auto">In Action Properties:<br />
Clipboard01.jpg</p>
<p dir="auto">In Event Procesing Policy Editor:<br />
Action "Shutdown_1min"</p>
<p dir="auto">The Log-File of Client after Power Fail:</p>
<pre><code>[20-Jul-2009 08:04:58] Log file opened
[20-Jul-2009 08:04:58] Subagent "WINNT.NSM" loaded successfully
[20-Jul-2009 08:05:41] Counter set B is empty, collector thread for that set will not start
[20-Jul-2009 08:05:41] Counter set C is empty, collector thread for that set will not start
[20-Jul-2009 08:05:41] Subagent "winperf.nsm" loaded successfully
[20-Jul-2009 08:05:41] Subagent "wmi.nsm" loaded successfully
[20-Jul-2009 08:05:41] Subagent "ups.nsm" loaded successfully
[20-Jul-2009 08:05:42] Listening on socket 0.0.0.0:4700
[20-Jul-2009 08:05:43] NetXMS Agent started
</code></pre>
]]></description><link>https://forum.netxms.org/post/3268</link><guid isPermaLink="true">https://forum.netxms.org/post/3268</guid><dc:creator><![CDATA[Lars.Weimar]]></dc:creator><pubDate>Mon, 20 Jul 2009 08:14:31 GMT</pubDate></item><item><title><![CDATA[Reply to (SOLVED) System.Shutdown with delay on Wed, 15 Jul 2009 14:11:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lars.weimar" aria-label="Profile: lars.weimar">@<bdi>lars.weimar</bdi></a> said in <a href="/post/3258">(SOLVED) System.Shutdown with delay</a>:</p>
<blockquote>
<p dir="auto">Step 1 ?</p>
<p dir="auto">How can I define a new custom action in agent?<br />
I install the agent on my machine. The agent create a directory in c:\NetXMS</p>
</blockquote>
<p dir="auto">You should edit agent's configuration file, usually C:\NetXMS\etc\nxagentd.conf and add line mentioned in previous post. You can edit agent's configuration directly from management console by right-clicking node object and selecting "Edit agent configuration" menu. After configuration file change you should restart agent.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3259</link><guid isPermaLink="true">https://forum.netxms.org/post/3259</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 15 Jul 2009 14:11:34 GMT</pubDate></item><item><title><![CDATA[Reply to (SOLVED) System.Shutdown with delay on Wed, 15 Jul 2009 14:01:06 GMT]]></title><description><![CDATA[<p dir="auto">Wow, fast reply  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Step 2 - 3 --&gt; OK and checked.</p>
<p dir="auto">Step 1 ?</p>
<p dir="auto">How can I define a new custom action in agent?<br />
I install the agent on my machine. The agent create a directory in c:\NetXMS<br />
Is it possible to use the "Agent Configurations" at Server?</p>
<p dir="auto">Lars</p>
]]></description><link>https://forum.netxms.org/post/3258</link><guid isPermaLink="true">https://forum.netxms.org/post/3258</guid><dc:creator><![CDATA[Lars.Weimar]]></dc:creator><pubDate>Wed, 15 Jul 2009 14:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to (SOLVED) System.Shutdown with delay on Wed, 15 Jul 2009 12:24:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">You can define custom action which will call <strong>shutdown</strong> command with timeout option. For example, to be able to shutdown Windows system with delay, you could:</p>
<ol>
<li>define new custom action in agent:</li>
</ol>
<pre><code>Action = System.ShutdownWithDelay:shutdown.exe /t $1
</code></pre>
<p dir="auto">This will add new action called System.ShutdownWithDelay which will accept one argument - delay in seconds.</p>
<ol start="2">
<li>If you need to call this action automatically from event processing policy, create actions on server with different delays:</li>
</ol>
<p dir="auto">Name: Shutdown_5min<br />
Action: System.ShutdownWithDelay 300</p>
<p dir="auto">Name: Shutdown_8min<br />
Action: System.ShutdownWithDelay 480</p>
<ol start="3">
<li>If you need to call this action manually via object tools, create new tools of type "action":</li>
</ol>
<p dir="auto">Name: Shutdown_5min<br />
Action: System.ShutdownWithDelay 300</p>
<p dir="auto">Name: Shutdown_8min<br />
Action: System.ShutdownWithDelay 480</p>
<p dir="auto">Hope this helps!</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3252</link><guid isPermaLink="true">https://forum.netxms.org/post/3252</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 15 Jul 2009 12:24:42 GMT</pubDate></item></channel></rss>