<?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[Create containers, conditions, nodes, bind objects, etc. from filter script]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">It would be great if NetXMS could create containers, conditions, nodes, bind objects, etc., within a Auto Bind filter script  :o. In this way, we could not only filter by IP, but after create a group of containers will hold node, customize and autobind it. So automatic network discovery would be complete.</p>
<p dir="auto">For example, suppose I want self-discovery a node IP 192.168.1.100, and when it has been discovered, NetXMS create a new node name "New Node", just under a "Routers" existing container, but previously creating two sub-containers "City -&gt; Zone" hanging from "Routers".<br />
My desire Auto Bind script could be something like:<br />
If $ node-&gt;ipAddr == 192.168.1.100	 {<br />
    CreateContainerGroup ("Services.Routers", "City",)	//Step by step<br />
    CreateContainerGroup ("Services.Routers.City ","Zone ",)	//Only one step<br />
    CreateNode ("Services.Routers.City.Zone"," New Node ", 192.168.1.100);<br />
    return 1;	//Apply Auto Bind<br />
    }</p>
<p dir="auto">return 0;	//Nothing to do</p>
<p dir="auto">This will require a few new functions for Accessing Object Data:<br />
CreateContainerGroup (&lt;path from root&gt;, &lt;container name&gt;, &lt;bind to object name&gt;)<br />
CreateNode (&lt;path from root&gt;, &lt;node name&gt;, &lt;ip address&gt;)<br />
CreateCondition (...<br />
...</p>
<p dir="auto">I hope someone else had this need.</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.netxms.org/topic/1136/create-containers-conditions-nodes-bind-objects-etc.-from-filter-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:51:05 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1136.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Feb 2011 13:27:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 26 Apr 2012 08:56:34 GMT]]></title><description><![CDATA[<p dir="auto">Checked and corrected <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7316</link><guid isPermaLink="true">https://forum.netxms.org/post/7316</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 26 Apr 2012 08:56:34 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 26 Apr 2012 08:09:30 GMT]]></title><description><![CDATA[<p dir="auto">Wow!! Happy as a lark ;D</p>
<p dir="auto">Please, can you check out BindObject wiki entry?</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://forum.netxms.org/post/7315</link><guid isPermaLink="true">https://forum.netxms.org/post/7315</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Thu, 26 Apr 2012 08:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Wed, 25 Apr 2012 22:21:12 GMT]]></title><description><![CDATA[<p dir="auto">Yes, BindObject can bind all objects that can be bound from console - nodes, subnets, clusters, and another containers.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7312</link><guid isPermaLink="true">https://forum.netxms.org/post/7312</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 25 Apr 2012 22:21:12 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Wed, 25 Apr 2012 21:44:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor.</p>
<p dir="auto">Awesome!!!, thank you very much for these new features.<br />
By the way, bindobject can bind one container to another container?</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://forum.netxms.org/post/7310</link><guid isPermaLink="true">https://forum.netxms.org/post/7310</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Wed, 25 Apr 2012 21:44:46 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Fri, 20 Apr 2012 12:57:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Since 1.2.0 version there are few NXSL functions for object manipulation:</p>
<p dir="auto">CreateContainer<br />
RemoveContainer<br />
BindObject<br />
UnbindObject<br />
FindObject</p>
<p dir="auto">I'll add descriptions for them in wiki (<a href="http://wiki.netxms.org/wiki/NXSL_Function_Reference" rel="nofollow ugc">http://wiki.netxms.org/wiki/NXSL_Function_Reference</a>).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7257</link><guid isPermaLink="true">https://forum.netxms.org/post/7257</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 20 Apr 2012 12:57:11 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 23 Feb 2012 21:35:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Not all. I think that NXSL script should not access external files or programs. If you need that in actions, you can run external script as an actiopn. But access to other objects are possible now. There are few functions which allows you to search for nodes and other type of objects.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6963</link><guid isPermaLink="true">https://forum.netxms.org/post/6963</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 23 Feb 2012 21:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 23 Feb 2012 18:38:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor.</p>
<p dir="auto">So all these limitations disappear?</p>
<blockquote>
<p dir="auto">Most notable one is very limited access to data outside script boundaries. For<br />
example, from NXSL script you can neither access files on the server, nor call external programs,<br />
nor even access data of any node object, other than the one the script is running for.</p>
</blockquote>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.netxms.org/post/6960</link><guid isPermaLink="true">https://forum.netxms.org/post/6960</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Thu, 23 Feb 2012 18:38:11 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 23 Feb 2012 17:32:33 GMT]]></title><description><![CDATA[<p dir="auto">I'm actually slowly moving towards ultimate goal - be able to do all this from NXSL scripts. Starting from 1.1.10 you already can run NXSL script as an action. Now I just need to add all necessary Create... functions.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6958</link><guid isPermaLink="true">https://forum.netxms.org/post/6958</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 23 Feb 2012 17:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 23 Feb 2012 13:50:04 GMT]]></title><description><![CDATA[<p dir="auto">As a workaround, I am currently using a AutoIt script in the new java console. That script reads a external text file and create new containers, node, conditions, assigned to them several properties, transformation scripts, etc..<br />
But I have real difficulties with interfaces list, for example to select all interfaces of a node or an interface with a certain IP, to define DCI's for one or more interfaces, etc..<br />
Perhaps this would be easier showing all interfaces in a SysListView32 tab control in addition to deploy it in a SysTreeView32 control.</p>
]]></description><link>https://forum.netxms.org/post/6952</link><guid isPermaLink="true">https://forum.netxms.org/post/6952</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Thu, 23 Feb 2012 13:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Tue, 20 Dec 2011 14:12:44 GMT]]></title><description><![CDATA[<p dir="auto">Nothing happens, too many things  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f62e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--open_mouth" style="height:1.4em;width:auto;vertical-align:middle" title=":o" alt="😮" /></p>
]]></description><link>https://forum.netxms.org/post/6537</link><guid isPermaLink="true">https://forum.netxms.org/post/6537</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Tue, 20 Dec 2011 14:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Tue, 20 Dec 2011 13:59:04 GMT]]></title><description><![CDATA[<p dir="auto">No news, sorry. I keep this in mind, but there are always something to do. Now I'm trying to create to-do lists for each release and follow them. 1.1.8 is already scheduled, so I have added to 1.1.9 to-do.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6535</link><guid isPermaLink="true">https://forum.netxms.org/post/6535</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 20 Dec 2011 13:59:04 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Mon, 19 Dec 2011 23:02:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Is there any news about these requirements?</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://forum.netxms.org/post/6523</link><guid isPermaLink="true">https://forum.netxms.org/post/6523</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Mon, 19 Dec 2011 23:02:13 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 10 Feb 2011 11:48:33 GMT]]></title><description><![CDATA[<p dir="auto">To handle a large amount of objects could also be interesting to have a special tool to read a formatted text file and load it on the NetXMS server in batch mode.</p>
]]></description><link>https://forum.netxms.org/post/5123</link><guid isPermaLink="true">https://forum.netxms.org/post/5123</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Thu, 10 Feb 2011 11:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Thu, 10 Feb 2011 11:28:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor, thanks for your reply.<br />
I completely agree with you, event processing policy is the best place, but now the binding process should be made by calling corresponding function from script.<br />
I’m trying to use NetXMS in a fairly extensive network (more than 400 locations) and manual deployment work (object by object) is quite hard, since many of data to be incorporated into NetXMS come from external data sources.<br />
It would be extraordinary through scripts we could automate any action we can do through menu options: create, modify, binding, removing objects, ...and if it were possible to read and write text-delimited files on the server, we could do anything in NetXMS. Sounds great.<br />
Best Regards.</p>
]]></description><link>https://forum.netxms.org/post/5122</link><guid isPermaLink="true">https://forum.netxms.org/post/5122</guid><dc:creator><![CDATA[testos]]></dc:creator><pubDate>Thu, 10 Feb 2011 11:28:11 GMT</pubDate></item><item><title><![CDATA[Reply to Create containers, conditions, nodes, bind objects, etc. from filter script on Wed, 09 Feb 2011 14:40:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Scripting slowly moves to more and more areas of NetXMS <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> I agree that creating and binding objects from scripts is a very good idea. I'm not sure, however, that auto bind script is the best place to create additional objects. For network discovery purposes, additional hook will be better. For example, it can be done that way that for each newly added node system executes some script from library. Or take more generic approach, and allow script execution as action in event processing policy - that way you will be able to execute your script on each SYS_NODE_ADDED event, as well as do many other things for other events.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5117</link><guid isPermaLink="true">https://forum.netxms.org/post/5117</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 09 Feb 2011 14:40:50 GMT</pubDate></item></channel></rss>