<?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[Todays dumb question  *** solved ***]]></title><description><![CDATA[<p dir="auto">What am I doing wrong here? - the OR is not working in Automatic Bind Rules.<br />
left($node-&gt;name,4) == "rawd" || left($node-&gt;name,4) == "rawq";</p>
<p dir="auto">These on their own work. left($node-&gt;name,4) == "rawd"; and left($node-&gt;name,4) == "rawq";   but not when I add the OR (or what I thing is the OR).</p>
<p dir="auto">my understanding is based on this:<br />
<a href="https://www.netxms.org/documentation/adminguide/data-collection.html#instance" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/data-collection.html#instance</a></p>
<p dir="auto">Can anyone point me in the direction of where any of this is in any doco?</p>
]]></description><link>https://forum.netxms.org/topic/5960/todays-dumb-question-solved</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:04:55 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5960.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 May 2019 07:10:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Sat, 01 Jun 2019 00:27:54 GMT]]></title><description><![CDATA[<p dir="auto">yep - imatch works <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>
]]></description><link>https://forum.netxms.org/post/25832</link><guid isPermaLink="true">https://forum.netxms.org/post/25832</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Sat, 01 Jun 2019 00:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Tue, 28 May 2019 15:29:11 GMT]]></title><description><![CDATA[<p dir="auto">I had a look at those links however many of the items do not have an example - especially the ones I want.</p>
<p dir="auto">My latest dumb question - how do I match on rawd or RAWD ?</p>
<p dir="auto">imatch instead of of ~=</p>
]]></description><link>https://forum.netxms.org/post/25796</link><guid isPermaLink="true">https://forum.netxms.org/post/25796</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Tue, 28 May 2019 15:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Mon, 27 May 2019 03:19:07 GMT]]></title><description><![CDATA[<p dir="auto">The following pages might be useful for scripting:<br />
For the node object, there's documentation on attributes here: <a href="https://wiki.netxms.org/wiki/NXSL:Node" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:Node</a> (for class reference, see <a href="https://wiki.netxms.org/wiki/Category:NXSL_Class_Reference" rel="nofollow ugc">https://wiki.netxms.org/wiki/Category:NXSL_Class_Reference</a>)<br />
Comparison operators are documented here: <a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Comparison_Operators" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Comparison_Operators</a><br />
Function Reference (not sure how up to date that is in regards to new functions): <a href="https://wiki.netxms.org/wiki/NXSL_Function_Reference" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL_Function_Reference</a></p>
]]></description><link>https://forum.netxms.org/post/25777</link><guid isPermaLink="true">https://forum.netxms.org/post/25777</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Mon, 27 May 2019 03:19:07 GMT</pubDate></item><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Mon, 27 May 2019 00:47:48 GMT]]></title><description><![CDATA[<p dir="auto">Todays answer - add the wild card!!.</p>
<p dir="auto">return $node-&gt; sysDescription like "*Windows*";</p>
<p dir="auto">Thanks Victor:<br />
<a href="https://www.netxms.org/forum/configuration/snmp-traps-handling/msg4957/#msg4957" rel="nofollow ugc">https://www.netxms.org/forum/configuration/snmp-traps-handling/msg4957/#msg4957</a></p>
]]></description><link>https://forum.netxms.org/post/25776</link><guid isPermaLink="true">https://forum.netxms.org/post/25776</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Mon, 27 May 2019 00:47:48 GMT</pubDate></item><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Mon, 27 May 2019 00:06:23 GMT]]></title><description><![CDATA[<p dir="auto">I told you it was a dumb question!!</p>
<p dir="auto">It is confusing because auto bind asks for a script - but it accepts code as well - which is just one part of what is confusing.</p>
<p dir="auto">From a solution perspective - fantastic - it works perfectly!! I use it not in a script - just using it "as is"</p>
<p dir="auto">As much as I think netxms is fantastic, some basic tutorials that demonstrate the syntax and basic script functionality would be a great benefit to those new to netxms.</p>
<p dir="auto">Another example of something that I should be able to do better. My Windows container uses the following auto bind but I would rather just search for Windows in sysDescription - but I do not know the name of that variable at a netxms level and I do not know the syntax for "contains". I tried like, but that did not work.</p>
<p dir="auto">So todays dumb question</p>
<p dir="auto">What is wrong with return $node-&gt;sysDescription  like "Windows";</p>
<p dir="auto">The server has these two attributes in Object view:<br />
System Description=Hardware: Intel64 Family 6 Model 79 Stepping 1 AT/AT COMPATIBLE - Software: Windows Version 6.2 (Build 9200 Multiprocessor Free)<br />
SNMP Object ID=.1.3.6.1.4.1.311.1.1.3.1.2</p>
<p dir="auto">For my Windows container:<br />
works<br />
return $node-&gt;snmpOID == ".1.3.6.1.4.1.311.1.1.3.1.2";</p>
<p dir="auto">does not work<br />
return $node-&gt;sysDescription  like "Windows";</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004500-when_is_a_script_not_a_script.png" alt="when is a script not a script.png" class="img-markdown  img-fluid" width="505" height="259" /></p>
]]></description><link>https://forum.netxms.org/post/25774</link><guid isPermaLink="true">https://forum.netxms.org/post/25774</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Mon, 27 May 2019 00:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to Todays dumb question  *** solved *** on Sun, 26 May 2019 11:29:25 GMT]]></title><description><![CDATA[<p dir="auto">I am assuming this line is only part of your full script? Otherwise, the or statement doesn't really do anything.<br />
If you want to bind a node to a container based on name starting with rawd or rawq, you will have to add a "return" in front of your line, so that the result of your OR statement is actually used.<br />
Alternatively you can also use</p>
<pre><code>return $node-&gt;name ~= "^raw[dq]";
</code></pre>
]]></description><link>https://forum.netxms.org/post/25773</link><guid isPermaLink="true">https://forum.netxms.org/post/25773</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Sun, 26 May 2019 11:29:25 GMT</pubDate></item></channel></rss>