<?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: Runtime Query For Cluster Partner Selection in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74371#M15479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi Tony,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Well, I think I have an answer for you, albeit with a slightly broader scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;What I did is not present two different fields but present just one called "Pair" (Obviously your name may vary).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I created a more complex query using MySQL functions (That is something that can be done in WFA).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I used this query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;SELECT DISTINCT IF(a1.name &amp;gt; a2.name, &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;CONCAT(a2.name&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;," - ", a1.name), CONCAT(a1.name," - ",a2.name))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;STORAGE.array&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt; a1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;JOIN &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;STORAGE.array&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt; a2 ON a1.partner_id = a2.id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;This query is a little complex but allows every pair to appear once (Due to the distinct and the lexicographical sorting).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Note the " - " - This is an artificial delimiter that allows you to split the pair string later and to assign each of the ip/name to its own variable&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;in a return node:&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;filer_a_name = splitByDelimiter($Pair," - ",0)&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;filer_b_name = splitByDelimiter($Pair," - ",1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;It just happens that I documented this use case and more in a preso about advanced user input queries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;so I am attaching it here (See slides 8-10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Yaron Haimsohn&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;WFA team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 14:00:20 GMT</pubDate>
    <dc:creator>yaronh</dc:creator>
    <dc:date>2012-05-23T14:00:20Z</dc:date>
    <item>
      <title>Runtime Query For Cluster Partner Selection</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74367#M15478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;So I have started on my first WFA workflow, and I have it kind a working. I am now trying to limit user inputs by using a runtime queries. It's been eons since I did any SQL quering.... &lt;SPAN __jive_emoticon_name="blush" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/blush.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first Input box, displays a list of all clustered controllers and this works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Variable is Array1&lt;/P&gt;&lt;P&gt;SELECT DISTINCT(name) FROM storage.array WHERE partner_id IS NOT NULL LIMIT 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the second input needs to automatically display the cluster partner, which the user can either select, or change (so not a locked input). So I have got this far, but I just can't get it to display the controller name:&lt;/P&gt;&lt;P&gt;SELECT DISTINCT(name) FROM storage.array&lt;/P&gt;&lt;P&gt;WHERE id = '${Array1}.partner_id';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the test window, or if you do a preview, and you actually put in the controller ID as the Array1 input it returns the name of the cluster partner, but if you select the first controller name, it displays nothing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone managed to get this working yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help, thanks&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:26:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74367#M15478</guid>
      <dc:creator>pitrakou</dc:creator>
      <dc:date>2025-06-05T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Query For Cluster Partner Selection</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74371#M15479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi Tony,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Well, I think I have an answer for you, albeit with a slightly broader scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;What I did is not present two different fields but present just one called "Pair" (Obviously your name may vary).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I created a more complex query using MySQL functions (That is something that can be done in WFA).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I used this query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;SELECT DISTINCT IF(a1.name &amp;gt; a2.name, &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;CONCAT(a2.name&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;," - ", a1.name), CONCAT(a1.name," - ",a2.name))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;STORAGE.array&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt; a1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;JOIN &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt;STORAGE.array&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black;"&gt; a2 ON a1.partner_id = a2.id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;This query is a little complex but allows every pair to appear once (Due to the distinct and the lexicographical sorting).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Note the " - " - This is an artificial delimiter that allows you to split the pair string later and to assign each of the ip/name to its own variable&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;in a return node:&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;filer_a_name = splitByDelimiter($Pair," - ",0)&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;filer_b_name = splitByDelimiter($Pair," - ",1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;It just happens that I documented this use case and more in a preso about advanced user input queries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;so I am attaching it here (See slides 8-10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;Yaron Haimsohn&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;WFA team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6pt; text-indent: 0in;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 14:00:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74371#M15479</guid>
      <dc:creator>yaronh</dc:creator>
      <dc:date>2012-05-23T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Query For Cluster Partner Selection</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74400#M15480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly, thanks very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:00:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Runtime-Query-For-Cluster-Partner-Selection/m-p/74400#M15480</guid>
      <dc:creator>pitrakou</dc:creator>
      <dc:date>2012-05-23T15:00:11Z</dc:date>
    </item>
  </channel>
</rss>

