<?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[Instance Discovery Filter Script - and display name]]></title><description><![CDATA[<p dir="auto">hi guys and girls,<br />
bit of a question I have about setting the display name based of another SNMP query the data is as follows </p>
<pre><code>1.3.6.1.4.1.14988.1.1.19.1.1.2.11 [STRING] = sfp11
1.3.6.1.4.1.14988.1.1.19.1.1.2.12 [STRING] = sfp12
1.3.6.1.4.1.14988.1.1.19.1.1.3.11 [INTEGER] = 0
1.3.6.1.4.1.14988.1.1.19.1.1.3.12 [INTEGER] = 1
1.3.6.1.4.1.14988.1.1.19.1.1.4.11 [INTEGER] = 0
1.3.6.1.4.1.14988.1.1.19.1.1.4.12 [INTEGER] = 0
1.3.6.1.4.1.14988.1.1.19.1.1.5.11 [GAUGE32] = 131000
1.3.6.1.4.1.14988.1.1.19.1.1.5.12 [GAUGE32] = 85000
1.3.6.1.4.1.14988.1.1.19.1.1.6.11 [GAUGE32] = 30
1.3.6.1.4.1.14988.1.1.19.1.1.6.12 [GAUGE32] = 41
1.3.6.1.4.1.14988.1.1.19.1.1.7.11 [GAUGE32] = 3290
1.3.6.1.4.1.14988.1.1.19.1.1.7.12 [GAUGE32] = 3256
1.3.6.1.4.1.14988.1.1.19.1.1.8.11 [GAUGE32] = 17
1.3.6.1.4.1.14988.1.1.19.1.1.8.12 [GAUGE32] = 4
1.3.6.1.4.1.14988.1.1.19.1.1.9.11 [INTEGER] = -5468
1.3.6.1.4.1.14988.1.1.19.1.1.9.12 [INTEGER] = -6800
1.3.6.1.4.1.14988.1.1.19.1.1.10.11 [INTEGER] = -1407
1.3.6.1.4.1.14988.1.1.19.1.1.10.12 [INTEGER] = 0
</code></pre>
<p dir="auto">I have tried this to get something but all I get is an error: Minor netxms1 SYS_SCRIPT_ERROR Script (DCI::TheDevice::8963::InstanceFilter) execution error: Error 15 in line 1: Unknown object's attribute </p>
<pre><code>dd = $node.createSNMPTransport()?.getValue(".1.3.6.1.4.1.14988.1.1.19.1.1.2.".$1);
if(dd!=NULL) {
return [true, $1, dd];
}

return [true, $1, $1];
</code></pre>
<p dir="auto">if I try getting the data via a seperate script and replace <strong>$node</strong> with the device it works any help would be great im new to Netxms and Scripting.</p>
<p dir="auto">Thanks <br />
Rhodri</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006817-Screenshot_2024-12-29_102311.png" alt="Screenshot 2024-12-29 102311.png" class="img-markdown  img-fluid" width="918" height="558" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006819-Screenshot_2024-12-29_102404.png" alt="Screenshot 2024-12-29 102404.png" class="img-markdown  img-fluid" width="983" height="634" /></p>
]]></description><link>https://forum.netxms.org/topic/8083/instance-discovery-filter-script-and-display-name</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:22:37 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8083.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Dec 2024 10:27:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Instance Discovery Filter Script - and display name on Sun, 29 Dec 2024 22:23:45 GMT]]></title><description><![CDATA[<p dir="auto">right after a bit of digging and feeling like a total tit.. </p>
<p dir="auto">It turns out I was missing a <strong>.</strong> from the <strong>Concatenation operator</strong> simple mistake so this now seems to work</p>
<pre><code>getoid = ".1.3.6.1.4.1.14988.1.1.19.1.1.2.";
instance = $1;
walk = $node.createSNMPTransport()?.getValue(getoid .. instance);
if(walk == NULL) {
walk = $1;
}
return [true, instance, walk];
</code></pre>
<p dir="auto">and this now effects the <strong>{instance-name}</strong> as intended.</p>
<p dir="auto">hope it helps someone in the future!</p>
]]></description><link>https://forum.netxms.org/post/34052</link><guid isPermaLink="true">https://forum.netxms.org/post/34052</guid><dc:creator><![CDATA[rhodri.ross]]></dc:creator><pubDate>Sun, 29 Dec 2024 22:23:45 GMT</pubDate></item></channel></rss>