<?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: WFA filter by cluster name in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98484#M17371</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me help you out.&lt;/P&gt;&lt;P&gt;Can you export the filter and send over the exported dar and a WFA backup.&lt;/P&gt;&lt;P&gt;Send it over to ag@netapp.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2014 05:15:31 GMT</pubDate>
    <dc:creator>ag</dc:creator>
    <dc:date>2014-12-17T05:15:31Z</dc:date>
    <item>
      <title>WFA filter by cluster name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98460#M17369</link>
      <description>&lt;P&gt;I have a workflow created that was cloned from the Create cDOT Cifs Share workflow. &amp;nbsp;My problem is the filter I created (used in the "Search for Cluster" command) which I would like to return only certain clusters based on a naming convention filter. &amp;nbsp;When I test the filter, it returns only the clusters matching the *prod* wildcard. &amp;nbsp;However, when I run it in the workflow, it keeps returning all the clusters. &amp;nbsp;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the SQL query:&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;cluster.id,&lt;BR /&gt;cluster.admin_vserver_id,&lt;BR /&gt;cluster.name,&lt;BR /&gt;cluster.location,&lt;BR /&gt;cluster.primary_address,&lt;BR /&gt;cluster.uuid&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.cluster&lt;BR /&gt;WHERE&lt;BR /&gt;cluster.name LIKE '%prod%'&lt;BR /&gt;OR cluster.primary_address = '${cluster_name}'&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:22:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98460#M17369</guid>
      <dc:creator>mkorpics</dc:creator>
      <dc:date>2025-06-05T05:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: WFA filter by cluster name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98484#M17371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me help you out.&lt;/P&gt;&lt;P&gt;Can you export the filter and send over the exported dar and a WFA backup.&lt;/P&gt;&lt;P&gt;Send it over to ag@netapp.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 05:15:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98484#M17371</guid>
      <dc:creator>ag</dc:creator>
      <dc:date>2014-12-17T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: WFA filter by cluster name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98502#M17374</link>
      <description>&lt;P&gt;Your query isn't right for the condition you are looking for. &amp;nbsp;I believe you want to look for either a cluster of a specific IP or if not found any Cluster that has name like 'prod'. This is an XOR kind of condition and can't be met with the query you have written. This query will always return the union of the 2 where clauses. I tested your query and it gives the same result both at filter and at workflow i.e. a list of clusters who match prod + cluster who match the given IP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'or' operator in SQL doesn't behave like a normal proraming language 'or'. It will NOT return if the first condition is met without checking for the 2nd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you can solve it by using 2 different filters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. To match prod&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;cluster.id,&lt;BR /&gt;cluster.admin_vserver_id,&lt;BR /&gt;cluster.name,&lt;BR /&gt;cluster.location,&lt;BR /&gt;cluster.primary_address,&lt;BR /&gt;cluster.uuid&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.cluster&lt;BR /&gt;WHERE&lt;BR /&gt;cluster.name LIKE '%prod%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. To match the IP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;cluster.id,&lt;BR /&gt;cluster.admin_vserver_id,&lt;BR /&gt;cluster.name,&lt;BR /&gt;cluster.location,&lt;BR /&gt;cluster.primary_address,&lt;BR /&gt;cluster.uuid&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.cluster&lt;BR /&gt;WHERE&lt;BR /&gt;cluster.primary_address = '${cluster_name}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now In your workflow have 2 No-Op commands; first to look for a cluster using Cluster IP i.e. filter-2 .&amp;nbsp;Set option If cluster1 was not found: Disable this command.&lt;/P&gt;&lt;P&gt;Second no-op command to seach the cluster using filter-1 i.e. name like prod. Go to Advanced tab and set: Execute this command if Cluster2 was found AND the &lt;STRONG&gt;if the following expression is TRUE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give this in expression box:&amp;nbsp;&lt;EM&gt;!(cluster1._found)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/1637i2B59B4EF9F8A20EC/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="2nd no-op.png" border="0" title="2nd no-op.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you are done. Your workflow will either get the cluster with this given IP or will find one with name like prod, but not both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 02:39:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-filter-by-cluster-name/m-p/98502#M17374</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-12-18T02:39:34Z</dc:date>
    </item>
  </channel>
</rss>

