<?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 Re: How to select vFiler which meets certain criteria in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36703#M7523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As Yann mentioned, we dont have "ldap.enable" option cached for vfiler objects. So, criteria based on that is not possible currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the filter for volume count, I thought I will share another similar way to what Yann mentioned above.&lt;/P&gt;&lt;P&gt;Here, volume count criteria is considered only in the design of a specific workflow and not in the filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Filter query for vFiler: (Only difference: volume_count returned in the filter and there is no ORDER BY clause)&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.ip as "array.ip",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(volume.name) AS volume_count&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.vfiler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.array&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON vfiler.id = storage.volume.vfiler_id&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (array.name='${array_name_or_ip}' OR array.ip = '${array_name_or_ip}')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND volume.array_id = array.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND vfiler.name like 'toasterv%'&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In Create Volume command:&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;- When selecting the vfiler for the volume, use the above filter in the resource selector and in advanced tab use volume_count as the criteria for deciding between vfilers from the same array where the vfiler with the minimum volume count is picked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot of Resource Selector for vFiler in "Create volume" command:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/21446_vfiler_resource_selector.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Screenshot of Advanced tab where volume_count is the deciding factor for choosing among the vFilers from the filer.&lt;/P&gt;&lt;P&gt; &lt;IMG src="http://community.netapp.com/legacyfs/online/21447_advanced_tab_3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 07:18:10 GMT</pubDate>
    <dc:creator>shailaja</dc:creator>
    <dc:date>2013-05-30T07:18:10Z</dc:date>
    <item>
      <title>How to select vFiler which meets certain criteria</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36688#M7521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Workflow, the first command is "Create Volume". I need to select a vFiler which has lowest number of Volumes in a particular Filer (toaster1).&lt;/P&gt;&lt;P&gt;The vFiler name should start with toasterv and options ldap.enable should be "off" for that vFiler.&lt;/P&gt;&lt;P&gt;I could get this ($vfilername) from powershell script but wondering how do I fit it in the parameters for "Create Volume" command ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Item 'C:\Program Files\NetApp\WFA\PoSH\Modules\*' | Import-Module&lt;BR /&gt;Connect-NaController toaster1&lt;/P&gt;&lt;P&gt;$vfilerlist = get-navfiler | sort-object vfstorecount | Select-String toasterv*&lt;BR /&gt;$numberofvfilers = $vfilerlist.count&lt;/P&gt;&lt;P&gt;for ($i=0; $i -lt $numberofvfilers; $i++)&lt;BR /&gt;{&lt;BR /&gt;$vfilername = $vfilerlist[$i]&lt;BR /&gt;connect-nacontroller toaster1 -vfiler $vfilername&lt;/P&gt;&lt;P&gt; if ((Get-NaOption ldap.enable).value -eq "off")&lt;BR /&gt; {&lt;BR /&gt; #Do nothing&lt;BR /&gt; break&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My workflow working fine with $vFilerName as user input but I need the WFA to select vFiler with above criteria.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/21429_Create_Volume.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:01:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36688#M7521</guid>
      <dc:creator>narendrathawani</dc:creator>
      <dc:date>2025-06-05T06:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to select vFiler which meets certain criteria</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36693#M7522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could write your own filter with the appropriate SQL query to select that vFiler. The only problem I see is that vFiler options does get cached in the database, so you could not make LDAP status part of the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the syntax you should use when creating the new Filter, and reference that filter in a new Finder that you can use in the "No-op Storage" into the vFiler tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.ip as "array.ip",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.vfiler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;LEFT JOIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON vfiler.id = storage.volume.vfiler_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;LEFT JOIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.array&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON volume.array_id = array.id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.name="${filerName}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND vfiler.name like 'toasterv%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;ORDER BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(volume.name) LIMIT 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 20:57:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36693#M7522</guid>
      <dc:creator>yannb</dc:creator>
      <dc:date>2013-05-29T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to select vFiler which meets certain criteria</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36703#M7523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As Yann mentioned, we dont have "ldap.enable" option cached for vfiler objects. So, criteria based on that is not possible currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the filter for volume count, I thought I will share another similar way to what Yann mentioned above.&lt;/P&gt;&lt;P&gt;Here, volume count criteria is considered only in the design of a specific workflow and not in the filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Filter query for vFiler: (Only difference: volume_count returned in the filter and there is no ORDER BY clause)&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.ip as "array.ip",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(volume.name) AS volume_count&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.vfiler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.array&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON vfiler.id = storage.volume.vfiler_id&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (array.name='${array_name_or_ip}' OR array.ip = '${array_name_or_ip}')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND volume.array_id = array.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND vfiler.name like 'toasterv%'&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In Create Volume command:&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;- When selecting the vfiler for the volume, use the above filter in the resource selector and in advanced tab use volume_count as the criteria for deciding between vfilers from the same array where the vfiler with the minimum volume count is picked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot of Resource Selector for vFiler in "Create volume" command:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/21446_vfiler_resource_selector.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Screenshot of Advanced tab where volume_count is the deciding factor for choosing among the vFilers from the filer.&lt;/P&gt;&lt;P&gt; &lt;IMG src="http://community.netapp.com/legacyfs/online/21447_advanced_tab_3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 07:18:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36703#M7523</guid>
      <dc:creator>shailaja</dc:creator>
      <dc:date>2013-05-30T07:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to select vFiler which meets certain criteria</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36710#M7524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yann and Shailaja ! &lt;/P&gt;&lt;P&gt;This was a great help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:10:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-select-vFiler-which-meets-certain-criteria/m-p/36710#M7524</guid>
      <dc:creator>narendrathawani</dc:creator>
      <dc:date>2013-06-10T12:10:41Z</dc:date>
    </item>
  </channel>
</rss>

