<?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[Auto bind script]]></title><description><![CDATA[<p dir="auto">Is this syntax correct?  I've manually ran configuration polls, but nodes aren't binding.  We have 5 IP cameras and Video server.  I created a Container in "Infrastructure Services" named "Camera" and configured Automatic Bind Rules with the following script:</p>
<pre><code>sub main()
{
	return $node-&gt;ipAddr == "10.0.0.18" ||
	return $node-&gt;ipAddr == "10.0.0.92" ||
	return $node-&gt;ipAddr == "10.0.0.93" ||
	return $node-&gt;ipAddr == "10.0.0.94" ||
	return $node-&gt;ipAddr == "10.0.0.96" ||
	return $node-&gt;ipAddr == "10.0.0.97";
}
</code></pre>
<p dir="auto">The cameras are configured with static IPs listed above, except for 10.0.0.18, that is our video server, also configured with static IPs.  I just want to container to autobind based on the IP address of the node, as opposed to manually right-clicking the node, selecting "Bind" and navigating the hierarchy tree.  Am I doing this correctly?</p>
]]></description><link>https://forum.netxms.org/topic/1626/auto-bind-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:50:08 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1626.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Feb 2012 16:11:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto bind script on Wed, 29 Feb 2012 21:29:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">The correct syntax will be</p>
<pre><code>return $node-&gt;ipAddr == "10.0.0.18" ||
	 $node-&gt;ipAddr == "10.0.0.92" ||
	 $node-&gt;ipAddr == "10.0.0.93" ||
	 $node-&gt;ipAddr == "10.0.0.94" ||
	 $node-&gt;ipAddr == "10.0.0.96" ||
	 $node-&gt;ipAddr == "10.0.0.97";
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7000</link><guid isPermaLink="true">https://forum.netxms.org/post/7000</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 29 Feb 2012 21:29:26 GMT</pubDate></item></channel></rss>