<?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[DCI with Multiple OID]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a question how can I calculate DCI with Multiple OIDs.</p>
<p dir="auto">ifInOctets  --&gt;  .1.3.6.1.2.1.2.2.1.10<br />
ifSpeed  --&gt;  .1.3.6.1.2.1.2.2.1.5</p>
<p dir="auto">I would like  to calculate the belows;</p>
<p dir="auto">((ifInOctets) * 8 / ifSpeed) * 100<br />
((ifOutOctets) * 8 / ifSpeed) * 100</p>
<p dir="auto">Could you le me know how can I make the script code?</p>
<p dir="auto">Thanks a lot.<br />
Maggio</p>
]]></description><link>https://forum.netxms.org/topic/906/dci-with-multiple-oid</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:17:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/906.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Apr 2010 12:50:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCI with Multiple OID on Fri, 30 Apr 2010 10:37:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. Seems works fine.</p>
]]></description><link>https://forum.netxms.org/post/4177</link><guid isPermaLink="true">https://forum.netxms.org/post/4177</guid><dc:creator><![CDATA[maggio]]></dc:creator><pubDate>Fri, 30 Apr 2010 10:37:56 GMT</pubDate></item><item><title><![CDATA[Reply to DCI with Multiple OID on Thu, 29 Apr 2010 20:54:22 GMT]]></title><description><![CDATA[<p dir="auto">You should create two DCIs, and transform one of it using value from another. For example, define DCI for interface speed (.1.3.6.1.2.1.2.2.1.5.1); leave it as is. Then, define DCI for inOctets (.1.3.6.1.2.1.2.2.1.10.1), and set transformation script to</p>
<pre><code>sub main()
{
   ifSpeed = GetDCIValue($node, FindDCIByName($node, ".1.3.6.1.2.1.2.2.1.5.1"));
   return ($1 * 8 / ifSpeed) * 100;
}
</code></pre>
<p dir="auto">See also this topic: <a href="https://www.netxms.org/forum/index.php/topic,289.0.html" rel="nofollow ugc">https://www.netxms.org/forum/index.php/topic,289.0.html</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4173</link><guid isPermaLink="true">https://forum.netxms.org/post/4173</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 29 Apr 2010 20:54:22 GMT</pubDate></item></channel></rss>