<?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[new nodes search function [SOLVED]]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">   I have Infrastructure Services structure built up (for dependency script, info on hierarchy in messages and to help build up network maps). And I was wondering if there is anything I can do to check if there are new nodes that need to be "bound" to the structure.</p>
<p dir="auto">I was thinking of building a script that gets node on a discovery poll and <strong>compares if it is somewhere in Infrastructure Services</strong>. If not, add it to some temporary folder in the infrastructure (so it is "found" on the next poll, and highlighted as "new").<br />
Problems I can see are load it could make on every poll, but more importantly - I don't have idea how to check the infrastructure to compare it. The node can be anywhere deep in the infrastructure, <strong>how would you solve such check ?</strong></p>
<p dir="auto">Script that does it once per request might be even better and this has led me to another question - <strong>is there some kind of parameter in database that might say there is a link and the node has been "bound" somewhere ?</strong><br />
For start it would be sufficient to run a query against the DB to check if nodes are "not bound anywhere".<br />
Have not found suitable parameter though.</p>
<p dir="auto">With regards,</p>
<p dir="auto">M.Sperl</p>
]]></description><link>https://forum.netxms.org/topic/3348/new-nodes-search-function-solved</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:18:01 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3348.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Sep 2014 11:11:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to new nodes search function [SOLVED] on Tue, 02 Sep 2014 12:36:27 GMT]]></title><description><![CDATA[<p dir="auto">Neat! Thanks for pointing that out for me.<br />
This is perfect solution.</p>
<p dir="auto">Have to apologize for not using the search button (really, when one does not use search it turns out to be really easy problem which has already been solved and well documented  :o).</p>
]]></description><link>https://forum.netxms.org/post/14819</link><guid isPermaLink="true">https://forum.netxms.org/post/14819</guid><dc:creator><![CDATA[sperlm]]></dc:creator><pubDate>Tue, 02 Sep 2014 12:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to new nodes search function [SOLVED] on Tue, 02 Sep 2014 11:40:26 GMT]]></title><description><![CDATA[<p dir="auto">I have this solved like this: I have a Container in "Infrastructure Services" named "!Unassigned". This Container has an autobind script:</p>
<pre><code>parents = GetNodeParents($node);

foreach(p : parents)
{
	if ((p-&gt;type != 1) &amp;&amp; (p-&gt;name != "!Unassigned"))
	{
		return false;
	}
}

return true;
</code></pre>
<p dir="auto">Please note you have to have "CheckTrustedNodes" set to 0 for this script to work.</p>
<p dir="auto">For a further explanation of what this script does, see this thread:<br />
<a href="https://www.netxms.org/forum/general-support/bound-unbound-nodes/" rel="nofollow ugc">https://www.netxms.org/forum/general-support/bound-unbound-nodes/</a></p>
]]></description><link>https://forum.netxms.org/post/14818</link><guid isPermaLink="true">https://forum.netxms.org/post/14818</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Tue, 02 Sep 2014 11:40:26 GMT</pubDate></item></channel></rss>