<?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: Querying the DFM Database by Group in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64595#M13439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if you are still looking for a response. Anyway, if you can setup a database user and establish connectivity to the database, you should be able to query data out of it as you need. Here are some links that might be of help: &lt;A class="active_link" href="http://media.netapp.com/documents/tr-3690.pdf" target="_blank"&gt;http://media.netapp.com/documents/tr-3690.pdf&lt;/A&gt; &lt;A _jive_internal="true" class="active_link" href="https://community.netapp.com/thread/3473" target="_blank"&gt;https://communities.netapp.com/thread/3473&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 21:46:27 GMT</pubDate>
    <dc:creator>ASELVANAYAGAM</dc:creator>
    <dc:date>2013-07-23T21:46:27Z</dc:date>
    <item>
      <title>Querying the DFM Database by Group</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64584#M13436</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;We are attempting to create some reports by running direct queries against the DFM database.&amp;nbsp; We would like to query against a specific group defined in Operations Manager. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading through the database schema, it looks like the following fields may help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="3" class="whs1"&gt;&lt;TBODY&gt;&lt;TR class="whs8" valign="top"&gt;&lt;TD class="whs7" colspan="4"&gt;&lt;H5&gt;View name: resGroupMembersView&lt;/H5&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="whs8" valign="top"&gt;&lt;TD class="whs7"&gt;&lt;P&gt;resGroupId&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;unsigned int&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;ID of the resource group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="whs8" valign="top"&gt;&lt;TD class="whs7"&gt;&lt;P&gt;resGroupMemberObjId&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;unsigned int&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD class="whs9"&gt;&lt;P&gt;ID of the member object&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we cannot figure out how to run a query pulling objects (such as aggregates and volumes) and limit the output to a specific group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of a query we built that is running against every aggregate and volume on the system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:"Table Normal";
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:"";
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:"Times New Roman","serif";}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; color: #244061;"&gt;dfm database query run -F csv "select objName AS 'Aggregate', str(aggrTotalSpaceKB/1024/1024/1024,5,2) AS 'Total', str(aggrTotalCommittedSpaceKB/1024/1024/1024,5,2) AS 'Committed', str((((aggrTotalCommittedSpaceKB/1024/1024/1024) / (aggrTotalSpaceKB/1024/1024/1024))*100),5,2) AS 'Committed %', str(aggrUsedCapacityKB/1024/1024/1024,5,2) AS 'Used', str((((aggrUsedCapacityKB/1024/1024/1024) / (aggrTotalSpaceKB/1024/1024/1024))*100),5,2) AS 'Used %', str(aggrAvailableSpaceKB /1024/1024/1024,5,2) AS 'Available', count(volId) AS 'FlexVols' from objectView, aggregateView, volumeView where objectView.objId = aggregateView.aggrId and volumeView.volAggrId = aggregateView.aggrId and objName &amp;lt;&amp;gt; 'aggr0' and objName &amp;lt;&amp;gt; 'vol0' and objName &amp;lt;&amp;gt; 'aggr1' group by objName, aggrTotalSpaceKB, aggrTotalCommittedSpaceKB, aggrUsedCapacityKB, aggrAvailableSpaceKB order by objName" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way we can limit this to query against a specific group of systems?&amp;nbsp; It doesn't look like the relationships between views allow us to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to build our own database views?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:22:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64584#M13436</guid>
      <dc:creator>christop</dc:creator>
      <dc:date>2025-06-05T07:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the DFM Database by Group</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64590#M13437</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;I could still use some help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to be able to query against a specific dfm group, or create my own database views that will allow me to do so.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 15:43:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64590#M13437</guid>
      <dc:creator>christop</dc:creator>
      <dc:date>2009-10-21T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Querying the DFM Database by Group</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64595#M13439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if you are still looking for a response. Anyway, if you can setup a database user and establish connectivity to the database, you should be able to query data out of it as you need. Here are some links that might be of help: &lt;A class="active_link" href="http://media.netapp.com/documents/tr-3690.pdf" target="_blank"&gt;http://media.netapp.com/documents/tr-3690.pdf&lt;/A&gt; &lt;A _jive_internal="true" class="active_link" href="https://community.netapp.com/thread/3473" target="_blank"&gt;https://communities.netapp.com/thread/3473&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:46:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Querying-the-DFM-Database-by-Group/m-p/64595#M13439</guid>
      <dc:creator>ASELVANAYAGAM</dc:creator>
      <dc:date>2013-07-23T21:46:27Z</dc:date>
    </item>
  </channel>
</rss>

