<?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: Need Aggregate Listed for the Cluster in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139149#M25359</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1757"&gt;@DHARMESH18&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct sorry about that I copied over the wrong version of the SQL query I had tested in WFA database. Not sure I had that part left out but glad everything is working now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Nick&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 15:11:20 GMT</pubDate>
    <dc:creator>NICKBARTON</dc:creator>
    <dc:date>2018-03-26T15:11:20Z</dc:date>
    <item>
      <title>Need Aggregate Listed for the Cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139139#M25353</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for an SQL Query which will populate the Aggregates in the Selected cluster only. Below is the Query that I have written but the same displays me Aggregate from all the Clusters rather than the selected one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT&lt;BR /&gt; aggregate.name &lt;BR /&gt;FROM&lt;BR /&gt; cm_storage.aggregate,&lt;BR /&gt; cm_storage.vserver,&lt;BR /&gt; cm_storage.cluster &lt;BR /&gt;WHERE&lt;BR /&gt; vserver.cluster_id = cluster.id &lt;BR /&gt; AND cluster.name = '${ClusterName}' &lt;BR /&gt; AND vserver.name = '${VserverName}' &lt;BR /&gt;ORDER BY&lt;BR /&gt; aggregate.name ASC&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:52:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139139#M25353</guid>
      <dc:creator>DHARMESH18</dc:creator>
      <dc:date>2025-06-04T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Aggregate Listed for the Cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139144#M25355</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1757"&gt;@DHARMESH18&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the SQL query below should get you where you need to be. You don't need to reference the vserver table at all the aggregates have a relationship to nodes which have a relationship to clusters you are probably getting multiple results because of like vServer names accross your clsuters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below query retuns the unique aggregate names from the specified cluster name and filters out root aggregates.. If your root aggregates have a different naming convention that doesn't end with root then you can change the below NOT LIKE filter to match your naming convention.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DISTINCT option is needed to remove repeat aggregates as it will return each aggregate name X number of times with X being the number of nodes in your cluster. Hope this gets you what need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT DISTINCT&lt;BR /&gt;aggr.name&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.aggregate as aggr,&lt;BR /&gt;cm_storage.cluster as clus,&lt;BR /&gt;cm_storage.node as node&lt;BR /&gt;WHERE&lt;BR /&gt;node.cluster_id = clus.id &lt;BR /&gt;AND &lt;BR /&gt;clus.name = '${ClusterName}'&lt;BR /&gt;AND &lt;BR /&gt;aggr.name NOT LIKE '%root'&lt;BR /&gt;ORDER BY&lt;BR /&gt;aggr.name ASC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You,&lt;/P&gt;
&lt;P&gt;-Nick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:28:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139144#M25355</guid>
      <dc:creator>NICKBARTON</dc:creator>
      <dc:date>2018-03-26T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need Aggregate Listed for the Cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139146#M25356</link>
      <description>&lt;P&gt;Hey thanks for reverting, Nick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code that you shared did help in clearing me with the root aggregate with the use of NOT LIKE filter. But the code still shows me all the aggregates from each of the clusters and not the one I selected. I want the aggregates to be displayed only for the cluster that I select.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:53:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139146#M25356</guid>
      <dc:creator>DHARMESH18</dc:creator>
      <dc:date>2018-03-26T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Aggregate Listed for the Cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139147#M25357</link>
      <description>&lt;P&gt;Thanks Nick,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some modification and this has worked now. Below is the change,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT DISTINCT&lt;BR /&gt;aggr.name&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.aggregate as aggr,&lt;BR /&gt;cm_storage.cluster as clus,&lt;BR /&gt;cm_storage.node as node&lt;BR /&gt;WHERE&lt;BR /&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;aggr.node_id = node.id&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;node.cluster_id = clus.id &lt;BR /&gt;AND &lt;BR /&gt;clus.name = '${ClusterName}'&lt;BR /&gt;AND &lt;BR /&gt;aggr.name NOT LIKE 'aggr0%'&lt;BR /&gt;ORDER BY&lt;BR /&gt;aggr.name ASC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the Help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dharmesh&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 15:00:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139147#M25357</guid>
      <dc:creator>DHARMESH18</dc:creator>
      <dc:date>2018-03-26T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need Aggregate Listed for the Cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139149#M25359</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1757"&gt;@DHARMESH18&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct sorry about that I copied over the wrong version of the SQL query I had tested in WFA database. Not sure I had that part left out but glad everything is working now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Nick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 15:11:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-Aggregate-Listed-for-the-Cluster/m-p/139149#M25359</guid>
      <dc:creator>NICKBARTON</dc:creator>
      <dc:date>2018-03-26T15:11:20Z</dc:date>
    </item>
  </channel>
</rss>

