<?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 help with OCUM 6.4 mySQL Query to select the cluster &amp;amp; vServer based on volume name in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135127#M24497</link>
    <description>&lt;P&gt;Thank you for the help Martin. I will check this query and get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 13:43:54 GMT</pubDate>
    <dc:creator>KISHOREG15</dc:creator>
    <dc:date>2017-10-10T13:43:54Z</dc:date>
    <item>
      <title>Need help with OCUM 6.4 mySQL Query to select the cluster &amp; vServer based on volume name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135075#M24488</link>
      <description>&lt;P&gt;Hello Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help with OCUM 6.4 mySQL Query to select the cluster &amp;amp; vServer based on volume name. I have prepared, but getting an error when I an trying to use it in filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netapp.com/us/media/tr-4585.pdf" target="_blank"&gt;http://www.netapp.com/us/media/tr-4585.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above article, I found a mySQL query to find the volume based on source ID. This is for OCUM 7.1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;volume.name AS 'Volume',&lt;/P&gt;&lt;P&gt;cluster.name AS 'Cluster',&lt;/P&gt;&lt;P&gt;svm.name AS 'Svm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;volume,&lt;/P&gt;&lt;P&gt;cluster,&lt;/P&gt;&lt;P&gt;svm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;volume.id=$source_id&lt;/P&gt;&lt;P&gt;AND cluster.id=volume.clusterId&lt;/P&gt;&lt;P&gt;AND svm.id=volume.svmId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have prepared an equivalent for this to work in OCUM 6.4, but it is not working as desired. My query is below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;&amp;nbsp;volume.name AS 'Volume',&lt;BR /&gt;&amp;nbsp;cluster.name AS&amp;nbsp; 'Cluster',&lt;BR /&gt;&amp;nbsp;vserver.name AS 'vserver'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;&amp;nbsp;cm_storage.volume,&lt;BR /&gt;&amp;nbsp;cm_storage.cluster,&lt;BR /&gt;&amp;nbsp;cm_storage.vserver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHERE&lt;BR /&gt;&amp;nbsp;volume.id=$'{source_id}'&lt;BR /&gt;&amp;nbsp;AND cluster.id=volume.clusterId&lt;BR /&gt;&amp;nbsp;AND vserver.id=volume.vserverId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you to please help me with equivalent query which works in OCUM 6.4. Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:30:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135075#M24488</guid>
      <dc:creator>KISHOREG15</dc:creator>
      <dc:date>2025-06-04T14:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OCUM 6.4 mySQL Query to select the cluster &amp; vServer based on volume name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135122#M24494</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OCUM version doesn't play into this, your query only depends on if you want to get a volume from the 7Mode tables (storage) or the Cdot tables (cm_storage). It looks like you want to grab the volume from the Cdot tables, in that case your table relations are slightly wrong. Try this one instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT
 volume.name AS 'name',
 vserver.name AS 'vserver.name',
 cluster.primary_address AS 'vserver.cluster.primary_address'
FROM
 cm_storage.volume,
 cm_storage.cluster,
 cm_storage.vserver
WHERE
 volume.id = ${source_id}
 AND vserver.id = volume.vserver_id
 AND cluster.id = vserver.cluster_id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work for a "proper" cm_storage volume filter.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:29:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135122#M24494</guid>
      <dc:creator>MartinRohrbach</dc:creator>
      <dc:date>2017-10-10T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OCUM 6.4 mySQL Query to select the cluster &amp; vServer based on volume name</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135127#M24497</link>
      <description>&lt;P&gt;Thank you for the help Martin. I will check this query and get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:43:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-help-with-OCUM-6-4-mySQL-Query-to-select-the-cluster-amp-vServer-based-on/m-p/135127#M24497</guid>
      <dc:creator>KISHOREG15</dc:creator>
      <dc:date>2017-10-10T13:43:54Z</dc:date>
    </item>
  </channel>
</rss>

