<?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[Using data from the device General tab for template auto-apply]]></title><description><![CDATA[<p dir="auto">I can see the vendor and product name in the general tab of an added node. How can I use this information automatic apply rules for a template? I have scoured the MIBs can not seem to find it.</p>
]]></description><link>https://forum.netxms.org/topic/6982/using-data-from-the-device-general-tab-for-template-auto-apply</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:27:35 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6982.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Mar 2021 22:06:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Wed, 10 Mar 2021 18:26:36 GMT]]></title><description><![CDATA[<p dir="auto">Your syntax is wrong - you should use -&gt; operator for accessing object properties (dot is string concatenation). Also, brackets denote capture group in regular expression, you should escape them with backslashes.</p>
<pre><code>return $node-&gt;productName ~= "ePMP3000 \\(FCC\\)";
</code></pre>
<p dir="auto">should work.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/29693</link><guid isPermaLink="true">https://forum.netxms.org/post/29693</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 10 Mar 2021 18:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Wed, 10 Mar 2021 01:04:36 GMT]]></title><description><![CDATA[<p dir="auto">Otherwise here's a sample of what I use for Cambium ePMP series (all of them, not just 3000 specifically)</p>
<pre><code>// ePMP series
if ($node-&gt;snmpOID ~= "(.1.3.6.1.4.1.17713.21.9).*") return true;
</code></pre>
]]></description><link>https://forum.netxms.org/post/29692</link><guid isPermaLink="true">https://forum.netxms.org/post/29692</guid><dc:creator><![CDATA[Millenium7]]></dc:creator><pubDate>Wed, 10 Mar 2021 01:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Wed, 10 Mar 2021 01:02:51 GMT]]></title><description><![CDATA[<p dir="auto">Just a guess but I think you need to return a 'true' or 'false' in order for it work<br />
And it could be that your RegEx syntax is wrong?</p>
<p dir="auto">Maybe try "ePMP3000 \(FCC\)" the backslashes mean a literal '(' or ')' otherwise () implies a capture group<br />
You could also try "ePMP3000.*" if you don't care about it having to exactly have "(FCC)" on the end</p>
]]></description><link>https://forum.netxms.org/post/29691</link><guid isPermaLink="true">https://forum.netxms.org/post/29691</guid><dc:creator><![CDATA[Millenium7]]></dc:creator><pubDate>Wed, 10 Mar 2021 01:02:51 GMT</pubDate></item><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Tue, 09 Mar 2021 23:21:22 GMT]]></title><description><![CDATA[<p dir="auto">I tried this too and still no joy.</p>
<p dir="auto">return ($node.productName ~= "ePMP3000 (FCC)") ? true : false;</p>
]]></description><link>https://forum.netxms.org/post/29689</link><guid isPermaLink="true">https://forum.netxms.org/post/29689</guid><dc:creator><![CDATA[DesertRat]]></dc:creator><pubDate>Tue, 09 Mar 2021 23:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Tue, 09 Mar 2021 23:12:14 GMT]]></title><description><![CDATA[<p dir="auto">I have added this to the Auto Apply filter and it still doesn't apply the template to the nodes. What am I missing?</p>
<p dir="auto">return $node.productName like "ePMP3000 (FCC)";</p>
]]></description><link>https://forum.netxms.org/post/29688</link><guid isPermaLink="true">https://forum.netxms.org/post/29688</guid><dc:creator><![CDATA[DesertRat]]></dc:creator><pubDate>Tue, 09 Mar 2021 23:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Using data from the device General tab for template auto-apply on Tue, 09 Mar 2021 22:40:37 GMT]]></title><description><![CDATA[<p dir="auto">Got it! I just need to reference $node-&gt;productName in the Rule.</p>
]]></description><link>https://forum.netxms.org/post/29687</link><guid isPermaLink="true">https://forum.netxms.org/post/29687</guid><dc:creator><![CDATA[DesertRat]]></dc:creator><pubDate>Tue, 09 Mar 2021 22:40:37 GMT</pubDate></item></channel></rss>