<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Truncating variable names in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67807#M14143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to leverage the volume name provided by the customer to build a qtree inside the volume. I can see how to concatenate one variable name into another but I can't think how to truncate one. For example say the user provides the $volume = MyNewVol_Prod&lt;/P&gt;&lt;P&gt;and want to create a Qtree called "MyNewVol_Qtree". That is, truncate part of the volume name to create the QTree name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:51:34 GMT</pubDate>
    <dc:creator>keitha</dc:creator>
    <dc:date>2025-06-05T05:51:34Z</dc:date>
    <item>
      <title>Truncating variable names</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67807#M14143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to leverage the volume name provided by the customer to build a qtree inside the volume. I can see how to concatenate one variable name into another but I can't think how to truncate one. For example say the user provides the $volume = MyNewVol_Prod&lt;/P&gt;&lt;P&gt;and want to create a Qtree called "MyNewVol_Qtree". That is, truncate part of the volume name to create the QTree name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:51:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67807#M14143</guid>
      <dc:creator>keitha</dc:creator>
      <dc:date>2025-06-05T05:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Truncating variable names</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67812#M14144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an included function called splitByDelimeter.&amp;nbsp; This will give you the ability to parse the volume name and then return the part that you want.&amp;nbsp; In the example that you gave it would be: splitByDelimeter($VolumeName,"_",0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternately, you could devise a VolumePrefix method and have that as a separate variable which would be combined with a type.&amp;nbsp; I use this method to ensure naming conventions are adhered to when provisioning for applications.&amp;nbsp; For example, if I am provisioning a data volume then the volumePrefix might be "goodrum_application" but the actual volume name is "goodrum_application_data" ($volumePrefix + "_data").&amp;nbsp; Using this method would allow you to create a Qtree named "goodrum_application_qtree" ($volumePrefix + "_qtree")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy Goodrum, NetApp&lt;/P&gt;&lt;P&gt;The Pirate&lt;/P&gt;&lt;P&gt;Twitter: @virtpirate&lt;/P&gt;&lt;P&gt;Blog: &lt;A href="http://www.virtpirate.com" target="_blank"&gt;www.virtpirate.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:22:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67812#M14144</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2013-10-18T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Truncating variable names</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67821#M14146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome...Wow that was easy...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:31:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Truncating-variable-names/m-p/67821#M14146</guid>
      <dc:creator>keitha</dc:creator>
      <dc:date>2013-10-18T15:31:48Z</dc:date>
    </item>
  </channel>
</rss>

