<?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[Port Negotiation Template]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to setup a template that collects port negotiation rates on Mikrotik devices. I get the info that I want on physical ports, but I get 0 results on virtual interfaces. I would like to filter out virtual interfaces so DCIs are not being created.</p>
<p dir="auto">transport = CreateSNMPTransport($node);<br />
if (transport == null)<br />
 return false;<br />
// get the interface name to return as instance-name<br />
vb = SNMPGet(transport, ".1.3.6.1.2.1.31.1.1.1.1." .. $1);<br />
if (vb == null) or (vb == 0)<br />
 return false;<br />
// filter out loopback<br />
if (vb.value == "lo")<br />
 return false;<br />
return %(true, $1, vb.value);</p>
<p dir="auto">I've tried using contains(vb.value, "vlan") on the bottom statement, but that just breaks the script.</p>
]]></description><link>https://forum.netxms.org/topic/8244/port-negotiation-template</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:19:31 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8244.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Aug 2025 19:40:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Port Negotiation Template on Sat, 30 Aug 2025 01:41:51 GMT]]></title><description><![CDATA[<p dir="auto">Not sure about the absent <a href="http://interface.name" rel="nofollow ugc">interface.name</a> - possibly a version issue?</p>
<p dir="auto">I've attached screenshots of an example similar to your approach. It worked for me on server version 5.2.x (Debian) against a 6-port MikroTik.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006959-Port_speed_template_-_1_-_General.png" alt="Port speed template - 1 - General.png" class="img-markdown  img-fluid" width="780" height="645" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006961-Port_speed_template_-_2_-_Instance_Discovery.png" alt="Port speed template - 2 - Instance Discovery.png" class="img-markdown  img-fluid" width="780" height="645" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006963-Port_speed_template_-_3_-_Data_Collection.png" alt="Port speed template - 3 - Data Collection.png" class="img-markdown  img-fluid" width="823" height="215" /></p>
]]></description><link>https://forum.netxms.org/post/34786</link><guid isPermaLink="true">https://forum.netxms.org/post/34786</guid><dc:creator><![CDATA[tolimanjo]]></dc:creator><pubDate>Sat, 30 Aug 2025 01:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Port Negotiation Template on Fri, 29 Aug 2025 13:31:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks tolimanjo. That limited it, but it seems that I can't call the variable <a href="http://interface.name" rel="nofollow ugc">interface.name</a> for the display name.</p>
]]></description><link>https://forum.netxms.org/post/34783</link><guid isPermaLink="true">https://forum.netxms.org/post/34783</guid><dc:creator><![CDATA[twparker]]></dc:creator><pubDate>Fri, 29 Aug 2025 13:31:24 GMT</pubDate></item><item><title><![CDATA[Reply to Port Negotiation Template on Tue, 26 Aug 2025 22:34:17 GMT]]></title><description><![CDATA[<p dir="auto">Could try using the interface type - RouterOS appears to use type 6 (ethernetCsmacd) exclusively for physical interfaces:</p>
<pre><code>interface = $node?.getInterfaceByIndex($1);
if (interface != null) {
    if (interface.ifType == 6)
        return [true, $1, interface.name];
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/34768</link><guid isPermaLink="true">https://forum.netxms.org/post/34768</guid><dc:creator><![CDATA[tolimanjo]]></dc:creator><pubDate>Tue, 26 Aug 2025 22:34:17 GMT</pubDate></item></channel></rss>