<?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[Script on Transformation Tab is not performing any action]]></title><description><![CDATA[<p dir="auto">Hi everyone, I have an issue.<br />
I don't know if I'm doing something wrong.<br />
I have following script that I'm going to use to avoid collection of wrong values (hundred of TB)  obtained from snmp "iftable"<br />
I dont get any error (of sintaxis) but the script is not performing any action.<br />
In adition, there is a way to debug this scripts used on transformation tab?. I'm using Windows Server 2012R2 as Netxms Server and PostgreSQL</p>
<p dir="auto">[script]<br />
interface = GetInterfaceObject($node, ((int)$dci-&gt;instance));<br />
speed = interface-&gt;speed;<br />
if ($1 &gt; speed){<br />
    return 0;<br />
}<br />
else{<br />
    return $1 * 8;<br />
}</p>
]]></description><link>https://forum.netxms.org/topic/5173/script-on-transformation-tab-is-not-performing-any-action</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:58 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5173.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jul 2017 20:25:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script on Transformation Tab is not performing any action on Wed, 19 Jul 2017 21:51:18 GMT]]></title><description><![CDATA[<p dir="auto">I did what you told me.<br />
with debugging I could realize that "$dci-&gt;instance" was returning the name of the iface instead index(returned in instance discovery)<br />
I have to create another function that return iface index by providing ifname.<br />
Thanks for your help <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forum.netxms.org/post/22726</link><guid isPermaLink="true">https://forum.netxms.org/post/22726</guid><dc:creator><![CDATA[lmontano]]></dc:creator><pubDate>Wed, 19 Jul 2017 21:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to Script on Transformation Tab is not performing any action on Tue, 18 Jul 2017 23:16:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can do some inline debugging by using the trace command, e.g.</p>
<pre><code>trace(0,interface-&gt;speed);
</code></pre>
<p dir="auto">That would log interface-&gt;speed in the server's log at debug level 0. Standard string concatenation rules apply.</p>
<p dir="auto">You may also want to do $1 * 8 prior to the speed comparison.<br />
For all I recall $1 is Bytes, but interface speed is Bits.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22715</link><guid isPermaLink="true">https://forum.netxms.org/post/22715</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Tue, 18 Jul 2017 23:16:07 GMT</pubDate></item></channel></rss>