<?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[Trying to make a more generic hp template - need to manipulate {instance} data?]]></title><description><![CDATA[<p dir="auto">As im trying to make this template work on more hp servers i do get a little more info returned in {instance} then i would like, example it will return 4.1, 4.2 or 2.1, 2.2 and so on. I dont want the Data Collection Description to show (Array disk 2.1 status) just the last character 1 and 2 and so on. Is there anyway we can modify this with script or something?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003528-Skarmklipp.jpg" alt="Skärmklipp.jpg" class="img-markdown  img-fluid" width="1272" height="593" /></p>
]]></description><link>https://forum.netxms.org/topic/5003/trying-to-make-a-more-generic-hp-template-need-to-manipulate-instance-data</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 19:40:30 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5003.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Apr 2017 07:22:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trying to make a more generic hp template - need to manipulate {instance} data? on Mon, 10 Apr 2017 09:24:22 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Victor <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /> for helping me out.</p>
]]></description><link>https://forum.netxms.org/post/22145</link><guid isPermaLink="true">https://forum.netxms.org/post/22145</guid><dc:creator><![CDATA[Hanfelt]]></dc:creator><pubDate>Mon, 10 Apr 2017 09:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to Trying to make a more generic hp template - need to manipulate {instance} data? on Sun, 09 Apr 2017 09:33:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can use instance filter script to modify instance itself or just instance name. For example, if you instance is two numbers connected with dot you can use the following filter script:</p>
<pre><code>instance = $1;
if ($1 ~= "[0-9]+\\.([0-9]+)")
{
   return %(true, instance, $1);
}
return true;
</code></pre>
<p dir="auto">This script will keep instance as is (i.e. 4.2) but set instance name to second number (i.e. 2). You can then use {instance-name} in description to insert updated display name.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22142</link><guid isPermaLink="true">https://forum.netxms.org/post/22142</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 09 Apr 2017 09:33:04 GMT</pubDate></item></channel></rss>