<?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[Move node to zone via NXSL]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">I'm currently trying to segment my networks in NetXMS and thous, I'm trying to move nodes between zones. Doing it manually is no option here, as there are simply to many.<br />
I looked around and found NXSL. I currently have a script, that reads the zoneUID but I can't find an option to write a new value in that field.</p>
<p dir="auto">So my question is how do i override the default zoneUID?</p>
<p dir="auto">Script:</p>
<pre><code>global nodeCount = 0;
for (i = 0; i &lt; 15; i++) {
	for (j = 0; j &lt; 255; j++) {
		ipadr = "192.168." . i . "." . j;
		node = FindNodeByIPAddress(ipadr);
		if (node != NULL) {
			println(node-&gt;zoneUIN);
			nodeCount++;
		}
	}
}

println("\n\n\nNode Count: " . nodeCount);
</code></pre>
]]></description><link>https://forum.netxms.org/topic/7308/move-node-to-zone-via-nxsl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:08:05 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7308.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Feb 2022 09:23:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Move node to zone via NXSL on Mon, 21 Feb 2022 16:14:16 GMT]]></title><description><![CDATA[<p dir="auto">Currently NXSL does not have options to change zone of a node.</p>
<p dir="auto">This could be done using nxshell script - this way you can do everyting that could be done from nxmc, but there's some learning curve. Some information is available here: <a href="https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations" rel="nofollow ugc">https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations</a></p>
]]></description><link>https://forum.netxms.org/post/31061</link><guid isPermaLink="true">https://forum.netxms.org/post/31061</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 21 Feb 2022 16:14:16 GMT</pubDate></item></channel></rss>