<?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[Automate NXSL Script [SOLVED]]]></title><description><![CDATA[<p dir="auto">Hi<br />
i have written a tiny script for my switches - which changes the expected interface states to ignore, unless an alias/port description is set.<br />
i would like to auto run it for all my switches every X hours - how can i realise that?  i dont really get the scheduled tasks - where can i define which script to run ? and what to enter into the cron schedule?</p>
<p dir="auto">thanks guys</p>
<p dir="auto">edit: thanks tomaskir, that was easier than i thought <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>
]]></description><link>https://forum.netxms.org/topic/4388/automate-nxsl-script-solved</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:18:00 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4388.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Apr 2016 18:39:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Automate NXSL Script [SOLVED] on Mon, 04 Apr 2016 10:35:12 GMT]]></title><description><![CDATA[<p dir="auto">Scheduled script is the functionality you are looking for.</p>
<ol>
<li>make sure your user has access to the scheduler features (in user manager)</li>
<li>go to "Configuration &gt; Scheduled Tasks"</li>
<li>create a new scheduled task</li>
<li>set type to "Execute.Script"</li>
<li>you can leave execution object empty, your script can then iterate all objects and execute on whichever you need</li>
</ol>
<ul>
<li>this is of course limited by security policy as explained <a href="https://wiki.netxms.org/wiki/SG:Security_Issues" rel="nofollow ugc">on this wiki page</a></li>
<li>how to iterate over all nodes example <a href="https://wiki.netxms.org/wiki/Script_Example:_Enumerate_All_Nodes" rel="nofollow ugc">on this wiki page</a></li>
</ul>
<ol start="6">
<li>put the name of your script in the Script Library into the "Parameters" field</li>
<li>set cron schedule</li>
</ol>
<ul>
<li>this is in standard cron format, if you dont know it, just google for "cron generator", for example <a href="http://www.cronmaker.com/" rel="nofollow ugc">this one</a></li>
</ul>
]]></description><link>https://forum.netxms.org/post/19556</link><guid isPermaLink="true">https://forum.netxms.org/post/19556</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Mon, 04 Apr 2016 10:35:12 GMT</pubDate></item></channel></rss>