<?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[Get node object in the Discovery Filter Script]]></title><description><![CDATA[<p dir="auto">I'm trying to filter out specific ip from network discovery using the filter script, but i can't get the ipaddress of the DiscoveryNode object.<br />
Did i miss something?</p>
<pre><code>tracelevel=0;
trace(tracelevel, "======= Filter::NetworkDiscovery ==========");
trace(tracelevel,$1-&gt;ipAddress);
trace(tracelevel,$node-&gt;ipAddress);
trace(tracelevel,$1.ipAddress);
trace(tracelevel,$node.ipAddress);
trace(tracelevel,$1-&gt;ipAddr);
trace(tracelevel,$node-&gt;ipAddr);
trace(tracelevel,$1.ipAddr);
trace(tracelevel,$node.ipAddr);
//trace(tracelevel,$1-&gt;snmpOID);
if ($1-&gt;ipAddress.address ~= "^172\.2\d\.1\.1") {
  trace(tracelevel, "== Filtered out from discovery ==");
  trace(tracelevel, $1-&gt;ipAddr);
  return false;
}
</code></pre>
<p dir="auto">Output:</p>
<pre><code>2025.03.26 08:51:13.767 *I* [nxsl.trace         ] ======= Filter::NetworkDiscovery ==========
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
2025.03.26 08:51:13.772 *I* [nxsl.trace         ] UNSPEC
</code></pre>
]]></description><link>https://forum.netxms.org/topic/8133/get-node-object-in-the-discovery-filter-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:56:53 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8133.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Mar 2025 07:56:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get node object in the Discovery Filter Script on Thu, 27 Mar 2025 12:19:00 GMT]]></title><description><![CDATA[<p dir="auto">That's a bug, fix will be in v. 5.2 which should be out quite soon</p>
]]></description><link>https://forum.netxms.org/post/34264</link><guid isPermaLink="true">https://forum.netxms.org/post/34264</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 27 Mar 2025 12:19:00 GMT</pubDate></item></channel></rss>