<?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[Undocumented operators?]]></title><description><![CDATA[<p dir="auto">Good evening,</p>
<p dir="auto">I have noticed these two operators which aren't in the documentation and would like some clarification on their use.</p>
<p dir="auto">One of them is a single dot.  Based on usage, it appears to be used to concatenate strings?  From the Wiki page <a href="https://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node" rel="nofollow ugc">Script Example: Read SNMP Value From Node</a>:</p>
<pre><code>value = SNMPGetValue(transport, ".1.3.6.1.2.1.1.1.0");
if (value == null)
{
    println "Failed to issue SNMP GET request";
    return 2;
}
else
{
    println "System description: " . value; // This dot
    return 0;
}
</code></pre>
<p dir="auto">The other one is this which I've seen in a number of places, including the built-in scripts: -&gt;  Example from Filter::AgentOrSNMP:</p>
<pre><code>return $1-&gt;isAgent || $1-&gt;isSNMP;
</code></pre>
<p dir="auto">I can see that it's referencing the capabilities of the node, but when I try to do this, the script fails, and NetXMS logs an event with description "error 15 in line 5: uknown object's attribute."  On this one, I'm trying to filter out some printers and a few other devices with SNMP that I don't want it to discover.  What I was going for on the line causing the error is return true for a device that has SNMP, and also is either running spanning-tree or is a router.  Maybe there's a better way to do this.  It's my first attempt.</p>
<p dir="auto">As best I can figure, $1-&gt;isSNMP returns true if the discovered node $1 has that capability, but I couldn't find this -&gt; operator in the documentation.</p>
<pre><code>// Select any device running the NetXMS agent,
// or any node with SNMP that matches criteria.

if ($1-&gt;isAgent) {exit 1;}
if ($1-&gt;isSNMP &amp;&amp; ($1-&gt;isSTP || $1-&gt;isRouter)) {exit 1;}
exit 0;
</code></pre>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netxms.org/topic/5415/undocumented-operators</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:26:00 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5415.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jan 2018 23:15:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Undocumented operators? on Wed, 31 Jan 2018 22:10:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">we somehow missed isSTP flag. Just added it to node class, will be available in 2.2.3 release.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/23787</link><guid isPermaLink="true">https://forum.netxms.org/post/23787</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 31 Jan 2018 22:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to Undocumented operators? on Sat, 27 Jan 2018 15:02:46 GMT]]></title><description><![CDATA[<p dir="auto">Okay, thanks for that info.  I can see from <a href="https://wiki.netxms.org/wiki/NXSL:Node" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:Node</a> that isRouter is a node attribute, but isSTP is not...  I put that in based on what I saw in the below image.  I see most of those things are available attributes, but not isSTP.  I'll have to try another approach.</p>
<p dir="auto">I can probably accomplish what I need to do for the moment based on the driver or sysDescription attributes, but for future reference, can I pull SNMP values from the newly discovered node like this and use it to filter them?  <a href="https://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node" rel="nofollow ugc">https://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node</a></p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003905-NetXMS_isSTP.png" alt="NetXMS_isSTP.png" class="img-markdown  img-fluid" width="137" height="405" /></p>
]]></description><link>https://forum.netxms.org/post/23756</link><guid isPermaLink="true">https://forum.netxms.org/post/23756</guid><dc:creator><![CDATA[KarlMCS]]></dc:creator><pubDate>Sat, 27 Jan 2018 15:02:46 GMT</pubDate></item><item><title><![CDATA[Reply to Undocumented operators? on Sat, 27 Jan 2018 12:39:56 GMT]]></title><description><![CDATA[<p dir="auto">"." is indeed string concatanation.</p>
<p dir="auto">It's shown and explained (along with others base NXSL concepts) here:<br />
<a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)</a></p>
<p dir="auto">"-&gt;" is used to access members of an object<br />
(attributes or functions)</p>
<p dir="auto">You can find more details here:<br />
<a href="https://wiki.netxms.org/wiki/NXSL_Class_Reference" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL_Class_Reference</a></p>
<p dir="auto">"error 15 in line 5: uknown object's attribute." means that the object you are referencing doesn't have the member you specified.</p>
]]></description><link>https://forum.netxms.org/post/23754</link><guid isPermaLink="true">https://forum.netxms.org/post/23754</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Sat, 27 Jan 2018 12:39:56 GMT</pubDate></item></channel></rss>