<?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[Filter Script]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">i am trying to create a network discovery filter script which will include several "AddrInSubnet" of several different subnets.<br />
i have managed to create a script with the return function but after reading the use manual i have come to realize that this is not the solution.<br />
can anyone help ?</p>
<p dir="auto">10x,<br />
Lindeamon</p>
]]></description><link>https://forum.netxms.org/topic/1229/filter-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:49:04 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1229.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 May 2011 10:50:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filter Script on Wed, 18 May 2011 04:48:31 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">thanx a lot for your help.<br />
one last question though, is there a way to do this in a loop where the subnet ip addresses will be declared at the beginning and  the script will check all of them until a match found ?</p>
<p dir="auto">something like that:</p>
<p dir="auto">a="<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>"<br />
b="yyy.yyy.yyy.yyy"</p>
<p dir="auto">do...until<br />
return AddrInSubnet($1-&gt;ipAddr,a,"255.255.255.0");</p>
<p dir="auto">thank u</p>
]]></description><link>https://forum.netxms.org/post/5477</link><guid isPermaLink="true">https://forum.netxms.org/post/5477</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Wed, 18 May 2011 04:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to Filter Script on Tue, 17 May 2011 12:32:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Correct script will be</p>
<p dir="auto">sub main()<br />
{<br />
  return AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0") ||<br />
     AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0");<br />
}</p>
<p dir="auto">or simply</p>
<p dir="auto">return AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0") ||<br />
    AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0");</p>
<p dir="auto">You have to enter full name of the script, like Filter::xxx.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5474</link><guid isPermaLink="true">https://forum.netxms.org/post/5474</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 17 May 2011 12:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to Filter Script on Tue, 17 May 2011 10:35:26 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">when i am trying to select a network discovery filter script the "select" button does not work, why is that ?<br />
i have created a script with the name Filter::xxx ,is that the name i should enter in the script name param. or should i enter just xxx ?</p>
<p dir="auto">10x alot,<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/post/5473</link><guid isPermaLink="true">https://forum.netxms.org/post/5473</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Tue, 17 May 2011 10:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to Filter Script on Tue, 17 May 2011 10:31:41 GMT]]></title><description><![CDATA[<p dir="auto">sub main()<br />
{<br />
  return AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0) ||<br />
  return AddrInSubnet($1-&gt;ipAddr,"<a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a>","255.255.255.0);<br />
}</p>
]]></description><link>https://forum.netxms.org/post/5472</link><guid isPermaLink="true">https://forum.netxms.org/post/5472</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Tue, 17 May 2011 10:31:41 GMT</pubDate></item><item><title><![CDATA[Reply to Filter Script on Tue, 17 May 2011 08:50:56 GMT]]></title><description><![CDATA[<p dir="auto">Can you post your script?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5469</link><guid isPermaLink="true">https://forum.netxms.org/post/5469</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 17 May 2011 08:50:56 GMT</pubDate></item></channel></rss>