<?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[How to divide or multiply a SNMP Value]]></title><description><![CDATA[<p dir="auto">some controllers send values that are wrong, because the value came without decimal point, just we have two options:<br />
Divide for 10 or multiplicate for 0,1<br />
<img src="https://camo.nodebb.org/9412cfd70af155d27f4cf416689d2d3481dc4572?url=https%3A%2F%2Fi.imgur.com%2FRRiesoh.png" alt="0_1544558407938_SNMP value without scale.png" class=" img-fluid img-markdown" /><br />
Please i need the script expresión to get the real value</p>
]]></description><link>https://forum.mango-os.com/topic/3955/how-to-divide-or-multiply-a-snmp-value</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:53:26 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3955.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Dec 2018 19:54:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Thu, 13 Dec 2018 13:18:43 GMT]]></title><description><![CDATA[<p dir="auto">Thanks so much, with Your script, now it is working... it is the most important thing, because the customer is testing this Scada platform.</p>
<p dir="auto">Soon We will start checking what happen with this controller and them kind of SNMP Data.<br />
Again, thanks for Your support</p>
]]></description><link>https://forum.mango-os.com/post/20735</link><guid isPermaLink="true">https://forum.mango-os.com/post/20735</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Thu, 13 Dec 2018 13:18:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Wed, 12 Dec 2018 20:29:38 GMT]]></title><description><![CDATA[<p dir="auto">Please check for a related event on the events page.</p>
<p dir="auto">Doesn't seem like the actual polling for data would be different for the different data types, The only part that is very concerned with the data type of the point is the variableToValue and valueToVariable functions but both of those should be able to handle a Gauge and Numeric. I shared with you the variableToValue function before: <a href="https://forum.infiniteautomation.com/topic/3887/snmp-host-testing" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3887/snmp-host-testing</a></p>
<blockquote>
<p dir="auto">Please could You tellme how to make a script.</p>
</blockquote>
<p dir="auto">Create a meta data source. Create a meta data point. Add the point you wish to divide by 10 into context,</p>
<pre><code>return p.value / 10; //where p is the variable name of the context point
</code></pre>
]]></description><link>https://forum.mango-os.com/post/20723</link><guid isPermaLink="true">https://forum.mango-os.com/post/20723</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:29:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Wed, 12 Dec 2018 20:12:46 GMT]]></title><description><![CDATA[<p dir="auto">see it please, now i change again from numeric type  to multistate type. now is working<img src="https://camo.nodebb.org/57678332a57ba636b5be3e98d39cea0ebb4c7082?url=https%3A%2F%2Fi.imgur.com%2F5u038Qk.png" alt="0_1544645824168_Alphanumeric Value_last.png" class=" img-fluid img-markdown" /><br />
Please could You tellme how to make a script.</p>
]]></description><link>https://forum.mango-os.com/post/20720</link><guid isPermaLink="true">https://forum.mango-os.com/post/20720</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:12:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Wed, 12 Dec 2018 19:49:32 GMT]]></title><description><![CDATA[<p dir="auto">Hmm. And no events about why it's not working?</p>
<p dir="auto">Yes you can definitely make a meta point and transform the value that way.</p>
]]></description><link>https://forum.mango-os.com/post/20719</link><guid isPermaLink="true">https://forum.mango-os.com/post/20719</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 12 Dec 2018 19:49:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Wed, 12 Dec 2018 18:43:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello, Phil. I check it and the integers work as numeric but gauge didnt work as numeric<br />
<img src="https://camo.nodebb.org/77637a2b3512f284f46f3cb95550a0017133e909?url=https%3A%2F%2Fi.imgur.com%2F4gnyM4c.png" alt="0_1544640518896_SNMP Gauge and numeric.png" class=" img-fluid img-markdown" /><br />
Coudl I make a meta data source and add a script that divide in 10 or multiply for 0.1???</p>
]]></description><link>https://forum.mango-os.com/post/20714</link><guid isPermaLink="true">https://forum.mango-os.com/post/20714</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Wed, 12 Dec 2018 18:43:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Wed, 12 Dec 2018 18:15:59 GMT]]></title><description><![CDATA[<p dir="auto">Something else is going on there. You would have been clearly warned that you would lose the point value history of the multistate point when you changed it to numeric. Perhaps that could be improved.</p>
<p dir="auto">But it sounds like those points are not polling. Do you have any events relating to this?</p>
]]></description><link>https://forum.mango-os.com/post/20712</link><guid isPermaLink="true">https://forum.mango-os.com/post/20712</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 12 Dec 2018 18:15:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 21:55:52 GMT]]></title><description><![CDATA[<p dir="auto">Phil, I change the type to numeric, i lost the values...<img src="https://camo.nodebb.org/f916ff37eb5e801b2e48afc75f500797fcf1fffc?url=https%3A%2F%2Fi.imgur.com%2FgZ2vUqy.png" alt="0_1544565722588_SNMP Gauge to numeric.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/20706</link><guid isPermaLink="true">https://forum.mango-os.com/post/20706</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Tue, 11 Dec 2018 21:55:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 21:43:02 GMT]]></title><description><![CDATA[<p dir="auto">The data type is the type in Mango. The Write Type could still be set to gauge and still permit you to set it (and it would transform it back with the multiplier and augend on the way out). So, it being Numeric will only affect things in Mango.</p>
]]></description><link>https://forum.mango-os.com/post/20705</link><guid isPermaLink="true">https://forum.mango-os.com/post/20705</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 11 Dec 2018 21:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 21:36:10 GMT]]></title><description><![CDATA[<p dir="auto">I will check, but its not Numeric<img src="https://camo.nodebb.org/1bec5d1e2cc307399b434eb7a4acedede191a7d5?url=https%3A%2F%2Fi.imgur.com%2FdfKeKCC.png" alt="0_1544564581208_SNMP Gauge.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/20703</link><guid isPermaLink="true">https://forum.mango-os.com/post/20703</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Tue, 11 Dec 2018 21:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 20:32:43 GMT]]></title><description><![CDATA[<p dir="auto">Change the data type to Numeric, then.</p>
]]></description><link>https://forum.mango-os.com/post/20701</link><guid isPermaLink="true">https://forum.mango-os.com/post/20701</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 11 Dec 2018 20:32:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 20:31:22 GMT]]></title><description><![CDATA[<p dir="auto">Phii, I check it, but is Multistate<br />
<img src="https://camo.nodebb.org/e333c8a6f021cfc88a02c76bbb0c6e826357f300?url=https%3A%2F%2Fi.imgur.com%2FM2NXUvB.png" alt="0_1544560626905_Snmp Multistate.png" class=" img-fluid img-markdown" /><br />
In the other thread, tha value is alphanumeric.</p>
<p dir="auto">please Your support</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.mango-os.com/post/20700</link><guid isPermaLink="true">https://forum.mango-os.com/post/20700</guid><dc:creator><![CDATA[Jorge Gonzalez]]></dc:creator><pubDate>Tue, 11 Dec 2018 20:31:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to divide or multiply a SNMP Value on Tue, 11 Dec 2018 20:15:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jorge,</p>
<p dir="auto">Is that point on the SNMP data source as a numeric data point? If so, there is a multiplier on the point's edit page:</p>
<p dir="auto"><img src="https://camo.nodebb.org/39d174118ac657feb02b451ad7f35be5b034e78f?url=https%3A%2F%2Fi.imgur.com%2FRGALXvQ.png" alt="0_1544559717689_forumSnmpMultiplicand.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If this is a meta point as relates to your other thread, you should be able to just add a multiplier into the script your wish to have this apply to, as with the multiply-by-20 you requested in the other thread.</p>
]]></description><link>https://forum.mango-os.com/post/20698</link><guid isPermaLink="true">https://forum.mango-os.com/post/20698</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 11 Dec 2018 20:15:28 GMT</pubDate></item></channel></rss>