<?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[Schedule Node Restart]]></title><description><![CDATA[<p dir="auto">Is there a way to use Scheduled Tasks to schedule a reboot of a node that has the agent installed? I tried a script with $node -&gt; agent.system.restart and just agent.system.restart which did not work. But that is the basic idea of what I want to do.</p>
<p dir="auto">As an alternative, I was looking at scheduling a script to execute a command on the agent (Windows, so I would use shutdown.exe), but I do not see a way to accomplish this.</p>
<p dir="auto">Finally, I think I could use Event Processing Policy, when device enters maintenance mode AND I have a unique identifier set (custom attribute) on the node I want to reboot, it will perform an action to restart the server. When node leaves maintenance, run a script to clear the unique identifier.</p>
<p dir="auto">Those options are in order of what I think are the best ways to accomplish (if possible) what I want to do. Any suggestions on the first two or thoughts on the third one?</p>
<p dir="auto">Thank you,</p>
<p dir="auto">Gary</p>
]]></description><link>https://forum.netxms.org/topic/5529/schedule-node-restart</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:22:44 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5529.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Apr 2018 16:55:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schedule Node Restart on Mon, 09 Apr 2018 09:40:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can use function AgentExecuteAction to execute action on remote agent. So script which will cause remote node to restart will looks like this:</p>
<pre><code>AgentExecuteAction($node, "System.Restart");
</code></pre>
<p dir="auto">you can create scheduled task which will call this script.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24135</link><guid isPermaLink="true">https://forum.netxms.org/post/24135</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 09 Apr 2018 09:40:11 GMT</pubDate></item></channel></rss>