<?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[Switch Version Check - String transformation]]></title><description><![CDATA[<p dir="auto">Hi<br />
i want to monitor my Switch OS Versions.<br />
Could you help me transform the Value i get after doing snmp check<br />
the value i get is:<br />
Juniper Networks, Inc. ex2200-c-12t-2g Ethernet Switch, kernel JUNOS 12.3R11.2, Build date: 2015-09-24 11:55:10 UTC Copyright (c) 1996-2015 Juniper Networks, Inc.</p>
<p dir="auto">how can i transform this to only check the "JUNOS 12.3R11.2" part  , and setup notifications if its not version XXX</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.netxms.org/topic/4246/switch-version-check-string-transformation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:44:45 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4246.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Jan 2016 14:47:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Switch Version Check - String transformation on Mon, 25 Jan 2016 14:40:35 GMT]]></title><description><![CDATA[<p dir="auto">ok got it working</p>
<p dir="auto">thank you very much</p>
]]></description><link>https://forum.netxms.org/post/18985</link><guid isPermaLink="true">https://forum.netxms.org/post/18985</guid><dc:creator><![CDATA[anw]]></dc:creator><pubDate>Mon, 25 Jan 2016 14:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Version Check - String transformation on Sun, 24 Jan 2016 20:28:29 GMT]]></title><description><![CDATA[<p dir="auto">Here is general info on how to setup emails (I guess you already have that working tho):<br />
<a href="https://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low" rel="nofollow ugc">https://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low</a></p>
<p dir="auto">In the "Send E-Mail" action, you have access to all parameters of the event.<br />
See this link for how they are formatted:<br />
<a href="https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing</a></p>
<p dir="auto">Threshold violation events are all modeled by the "SYS_THRESHOLD_REACHED" event.<br />
Which means that %4 is the current value of the DCI.<br />
For list of all parameters and what numbers they are see the "SYS_THRESHOLD_REACHED" event template (Configuration &gt; Event configuration).</p>
]]></description><link>https://forum.netxms.org/post/18956</link><guid isPermaLink="true">https://forum.netxms.org/post/18956</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Sun, 24 Jan 2016 20:28:29 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Version Check - String transformation on Sun, 24 Jan 2016 16:29:10 GMT]]></title><description><![CDATA[<p dir="auto">awesome thank you</p>
<p dir="auto">i created a new event, and setup EPP notification to send me an email.</p>
<p dir="auto">how can forward the actual Kernel Version to the notification?<br />
so i get an email like: "JUNOS is out of date, running Version XXX"</p>
<p dir="auto">thanks!</p>
]]></description><link>https://forum.netxms.org/post/18955</link><guid isPermaLink="true">https://forum.netxms.org/post/18955</guid><dc:creator><![CDATA[anw]]></dc:creator><pubDate>Sun, 24 Jan 2016 16:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Version Check - String transformation on Sun, 24 Jan 2016 15:11:36 GMT]]></title><description><![CDATA[<p dir="auto">You can use a transformation script like this:</p>
<pre><code>foundMatch = $1 ~= "Juniper Networks, Inc\. .* kernel (.*), Build date: .*";

return foundMatch ? $1 : "Unknown";
</code></pre>
<p dir="auto">Then set threshold on the DCI to "Operation" "!= : not equal to" and the version you want to have on your devices into "Value".</p>
<p dir="auto">This will generate SYS_THRESHOLD_REACHED events (by default, feel free to generate different event if you want) when the version is invalid.<br />
Handle the event in EPP as you wish to generate Alarms / notifications (by default it will already create an Alarm in NetXMS).</p>
]]></description><link>https://forum.netxms.org/post/18954</link><guid isPermaLink="true">https://forum.netxms.org/post/18954</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Sun, 24 Jan 2016 15:11:36 GMT</pubDate></item></channel></rss>