<?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[Execution of Script]]></title><description><![CDATA[<p dir="auto">hi all,</p>
<p dir="auto">i want to execute the script created in script library for a particular DCI through transformation tab of DCI. Is it possible..? if possible what function i can use  to call that script in transformation script of  DCI.</p>
<p dir="auto">thank you<br />
Percy</p>
]]></description><link>https://forum.netxms.org/topic/2918/execution-of-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:22:40 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2918.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Feb 2014 09:15:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Execution of Script on Thu, 13 Feb 2014 17:06:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">To use function from library script, you should use "use" operator in your transformation script, like following:</p>
<pre><code>use LibraryScript;

return library_function($1);
</code></pre>
<p dir="auto">assuming you have script in library named LibraryScript like this:</p>
<pre><code>sub library_function(x)
{
   return x * 2;
}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12783</link><guid isPermaLink="true">https://forum.netxms.org/post/12783</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 13 Feb 2014 17:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Execution of Script on Thu, 13 Feb 2014 13:58:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi, not sure if it works for transformations but I am using scripts "normally" in automatic apply rules for templates... if it is consistent try simply one of these things:</p>
<ol>
<li>enter the script directly to the transformation as you would while editing script in script library</li>
<li>create function in the script library and just use it in the transformation window<br />
e.g. in script library:</li>
</ol>
<pre><code>sub function(x)
{code}
</code></pre>
<p dir="auto">in tranformation tab: function(inputdata);</p>
<p dir="auto">Will try it to be sure..</p>
<p dir="auto">EDIT:<br />
forgot we discussed transformations in thread <a href="https://www.netxms.org/forum/configuration/history-management-store-averaged-values/msg10552/#msg10552" rel="nofollow ugc">History management : store averaged values ?</a></p>
<p dir="auto">also did a little dummy transformation "return (2 * GetDCIValue($node, FindDCIByDescription($node, "CPU 47")));" which returns twice the value of the DCI "CPU 47" and it works fine as I suggested above</p>
<p dir="auto">With regards,<br />
Milan Sperl</p>
]]></description><link>https://forum.netxms.org/post/12779</link><guid isPermaLink="true">https://forum.netxms.org/post/12779</guid><dc:creator><![CDATA[sperlm]]></dc:creator><pubDate>Thu, 13 Feb 2014 13:58:40 GMT</pubDate></item></channel></rss>