<?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[Autobind по вендору]]></title><description><![CDATA[<p dir="auto">Коллеги, не нашел примера в форуме для следующей задачи:</p>
<p dir="auto">Как сгруппировать в контейнере все устройства конкретного вендора (первые три поля мак-адреса)?</p>
]]></description><link>https://forum.netxms.org/topic/4906/autobind-по-вендору</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:22:14 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4906.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Feb 2017 17:33:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Autobind по вендору on Wed, 12 Apr 2017 14:45:33 GMT]]></title><description><![CDATA[<p dir="auto">Немножко не так:</p>
<pre><code>interfaces = GetNodeInterfaces($node);
foreach(i : interfaces)
{
   if (i-&gt;macAddr like "85:55:*")
      return true;
}
return false;
</code></pre>
]]></description><link>https://forum.netxms.org/post/22168</link><guid isPermaLink="true">https://forum.netxms.org/post/22168</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 12 Apr 2017 14:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Autobind по вендору on Mon, 06 Mar 2017 16:55:39 GMT]]></title><description><![CDATA[<p dir="auto">Примерно так:<br />
interfaces = GetNodeInterfaces($node);<br />
foreach(i : interfaces)<br />
{<br />
    return i-&gt;macAddr like "85:55:*";<br />
}<br />
return false;</p>
]]></description><link>https://forum.netxms.org/post/21935</link><guid isPermaLink="true">https://forum.netxms.org/post/21935</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Mon, 06 Mar 2017 16:55:39 GMT</pubDate></item><item><title><![CDATA[Reply to Autobind по вендору on Mon, 06 Mar 2017 11:41:43 GMT]]></title><description><![CDATA[<p dir="auto">Не поделюсь, тк не использую  Automatic bind rules. Но всё что вам нужно - вернуть в скрипте true если хотите поместить ноду в контейнер или false - если не хотите.</p>
]]></description><link>https://forum.netxms.org/post/21933</link><guid isPermaLink="true">https://forum.netxms.org/post/21933</guid><dc:creator><![CDATA[2c2i]]></dc:creator><pubDate>Mon, 06 Mar 2017 11:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to Autobind по вендору on Fri, 03 Mar 2017 17:51:42 GMT]]></title><description><![CDATA[<p dir="auto">Кодом не поделитесь, коллега?<br />
Буду крайне признателен.</p>
]]></description><link>https://forum.netxms.org/post/21922</link><guid isPermaLink="true">https://forum.netxms.org/post/21922</guid><dc:creator><![CDATA[Stanislav68]]></dc:creator><pubDate>Fri, 03 Mar 2017 17:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to Autobind по вендору on Mon, 27 Feb 2017 15:26:35 GMT]]></title><description><![CDATA[<p dir="auto">написать в Automatic bind rules для контейнера код который циклом пройдется по всем интерфейсам ноды и если найдет на одном из них нужный мак - ответи true</p>
]]></description><link>https://forum.netxms.org/post/21906</link><guid isPermaLink="true">https://forum.netxms.org/post/21906</guid><dc:creator><![CDATA[2c2i]]></dc:creator><pubDate>Mon, 27 Feb 2017 15:26:35 GMT</pubDate></item></channel></rss>