<?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[[SOLVED] Set interface "Exclude from topology" flag, from execute server script]]></title><description><![CDATA[<p dir="auto">Hi !</p>
<p dir="auto">I'm begining to automate some operations on my NetXMS installation with server scripts. What I can't found is a way to set the "Exclude from topology" flag on an interface, via some function. I'm missing something in the wiki or it is not implemented? Currently I'm managing and unmanaging interfaces using this script:</p>
<pre><code>// Find "Entire Network" object and start enumeration from it
EnumerateNodes(FindObject(1));

// This function walks object tree recursively starting from given root
sub EnumerateNodes(rootObject)
{
	// Walk all child objects
	foreach(o : GetObjectChildren(rootObject))
	{
		if (classof(o) == "Node")
		{
			interfaces = GetNodeInterfaces(o);
			foreach(i : interfaces)
		{

	//trace(1, "Interface: name='" . i-&gt;name . "' id=" . i-&gt;id);

	if (i-&gt;name=="2")
			{
			ManageObject(FindObject(i-&gt;id));
			println(i-&gt;ipAddr);
			}
		}
		}
		else if (classof(o) == "NetObj")
		{
			// For all other objects, go down the tree
			// There can be additional checks for object class, like
			// if (o-&gt;type == 5)
			EnumerateNodes(o);
		}
	}
}
</code></pre>
<p dir="auto">Thanks in advance and sorry for poor english!!</p>
<p dir="auto">Diego</p>
]]></description><link>https://forum.netxms.org/topic/4366/solved-set-interface-exclude-from-topology-flag-from-execute-server-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:14:36 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4366.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Mar 2016 23:22:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Set interface "Exclude from topology" flag, from execute server script on Sun, 27 Mar 2016 16:25:16 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your answer Victor. Any ideas on when 2.0.3 will be available?</p>
<p dir="auto">Diego</p>
]]></description><link>https://forum.netxms.org/post/19485</link><guid isPermaLink="true">https://forum.netxms.org/post/19485</guid><dc:creator><![CDATA[dmayan]]></dc:creator><pubDate>Sun, 27 Mar 2016 16:25:16 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Set interface "Exclude from topology" flag, from execute server script on Sun, 27 Mar 2016 08:37:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">currently it's not implemented. For 2.0.3 I've added new method for interface object - setExcludeFromTopology.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19481</link><guid isPermaLink="true">https://forum.netxms.org/post/19481</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 27 Mar 2016 08:37:41 GMT</pubDate></item></channel></rss>