<?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[Deleting Objects interfaces]]></title><description><![CDATA[<p dir="auto">Hi, I am new to this program and I started using it for 3 weeks on an database already build from the previous internee, my colleagues want me to delete the interfaces that don't exist from the switches but every time I delete it comes back is there a way to only make the program show the ports that exist.</p>
]]></description><link>https://forum.netxms.org/topic/5509/deleting-objects-interfaces</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:25:35 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5509.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Mar 2018 12:17:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deleting Objects interfaces on Sun, 18 Aug 2019 21:10:10 GMT]]></title><description><![CDATA[<p dir="auto">that sums it up quite good! great stuff, thanks.<br />
with debug console i actually meant the server console from the Tools menu.</p>
]]></description><link>https://forum.netxms.org/post/26290</link><guid isPermaLink="true">https://forum.netxms.org/post/26290</guid><dc:creator><![CDATA[JayST]]></dc:creator><pubDate>Sun, 18 Aug 2019 21:10:10 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Sun, 18 Aug 2019 10:52:37 GMT]]></title><description><![CDATA[<p dir="auto">You can right-click on any node to execute a server script (I'm assuming that's what you mean as debug console?) and just write your code in there. Your code wouldn't be node specific (if you are indeed enumerating all nodes and then all interfaces per node) so it doesn't matter against which node you run it. Or you could write it in the script library and then select it from the drop down. Or you could schedule a task that runs a script from the script library.</p>
]]></description><link>https://forum.netxms.org/post/26286</link><guid isPermaLink="true">https://forum.netxms.org/post/26286</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Sun, 18 Aug 2019 10:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Sun, 18 Aug 2019 07:33:00 GMT]]></title><description><![CDATA[<p dir="auto">Ok thanks.<br />
About running such one-time scripts:<br />
Would i need to create a script in the script library and run it in the debug console with exec command? Or is there a easier “run this script now” functionality?</p>
]]></description><link>https://forum.netxms.org/post/26284</link><guid isPermaLink="true">https://forum.netxms.org/post/26284</guid><dc:creator><![CDATA[JayST]]></dc:creator><pubDate>Sun, 18 Aug 2019 07:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Sun, 18 Aug 2019 04:12:33 GMT]]></title><description><![CDATA[<p dir="auto">You could write a script to go through all devices, enumerate the interfaces and utilise the DeleteObject function in NXSL to remove the interfaces. Or you could add the interface enumeration and delete to the configuration poll hook.</p>
]]></description><link>https://forum.netxms.org/post/26283</link><guid isPermaLink="true">https://forum.netxms.org/post/26283</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Sun, 18 Aug 2019 04:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Sat, 17 Aug 2019 21:27:54 GMT]]></title><description><![CDATA[<p dir="auto">I also resolved the (re)addition issue using the Hook::CreateInterfaces script and filter some names there, but what would be the easiest way to remove the unwanted interfaces across a bunch of nodes that got added before filtering?</p>
]]></description><link>https://forum.netxms.org/post/26282</link><guid isPermaLink="true">https://forum.netxms.org/post/26282</guid><dc:creator><![CDATA[JayST]]></dc:creator><pubDate>Sat, 17 Aug 2019 21:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Tue, 27 Mar 2018 09:11:59 GMT]]></title><description><![CDATA[<p dir="auto">Thx Tursiops the code works!</p>
]]></description><link>https://forum.netxms.org/post/24063</link><guid isPermaLink="true">https://forum.netxms.org/post/24063</guid><dc:creator><![CDATA[David Jesus]]></dc:creator><pubDate>Tue, 27 Mar 2018 09:11:59 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Sat, 24 Mar 2018 10:55:01 GMT]]></title><description><![CDATA[<p dir="auto">The following should actually work:</p>
<pre><code>if ($1-&gt;name ilike "*fa*") { return false;}
return true;
</code></pre>
<p dir="auto">Note that that your code was comparing to "*fa**.***"</p>
<p dir="auto">You could also use:</p>
<pre><code>if ($1-&gt;name imatch "fa") { return false;}
return true;
</code></pre>
]]></description><link>https://forum.netxms.org/post/24050</link><guid isPermaLink="true">https://forum.netxms.org/post/24050</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Sat, 24 Mar 2018 10:55:01 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Fri, 23 Mar 2018 17:13:25 GMT]]></title><description><![CDATA[<p dir="auto">Looks that I have to do the same, thx again for the help.</p>
]]></description><link>https://forum.netxms.org/post/24047</link><guid isPermaLink="true">https://forum.netxms.org/post/24047</guid><dc:creator><![CDATA[David Jesus]]></dc:creator><pubDate>Fri, 23 Mar 2018 17:13:25 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Fri, 23 Mar 2018 16:56:49 GMT]]></title><description><![CDATA[<p dir="auto">Yeah I tried wildcards too.....didn't work.<br />
Ugly, but I ended up with a if( ){} structure for each interface name that i didn't want and that worked.<br />
(elminated about 9600 interfaces)</p>
]]></description><link>https://forum.netxms.org/post/24043</link><guid isPermaLink="true">https://forum.netxms.org/post/24043</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Fri, 23 Mar 2018 16:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Fri, 23 Mar 2018 16:38:10 GMT]]></title><description><![CDATA[<p dir="auto">Thx Stan, I used your example, I changed it to help me but the problem is that the ports are still coming back.<br />
I want the ports fa1 to fa8 to but I does not work.<br />
I am using this script:<br />
if ($1-&gt;name ilike "*fa.*"){<br />
   	return false;}</p>
<p dir="auto">return true;</p>
]]></description><link>https://forum.netxms.org/post/24042</link><guid isPermaLink="true">https://forum.netxms.org/post/24042</guid><dc:creator><![CDATA[David Jesus]]></dc:creator><pubDate>Fri, 23 Mar 2018 16:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting Objects interfaces on Thu, 22 Mar 2018 13:29:24 GMT]]></title><description><![CDATA[<p dir="auto">To limit the (re)addition of unwanted interfaces there is a script in the scriptlibrary called Hook::CreateInterface</p>
<p dir="auto">There are some examples on the site here, but simply you can do:</p>
<p dir="auto">if ($1-&gt;name ilike "Po1"){<br />
   return false;<br />
   }<br />
return true;</p>
<p dir="auto">Replace Po1 with the interface name that your switch is reporting.</p>
]]></description><link>https://forum.netxms.org/post/24038</link><guid isPermaLink="true">https://forum.netxms.org/post/24038</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Thu, 22 Mar 2018 13:29:24 GMT</pubDate></item></channel></rss>