<?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: Query export of built in ocum reports. in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137980#M25037</link>
    <description>&lt;P&gt;Hi Dan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is possible to access the "ocum_report_birt" database however you need to connect to MySQL as the root user as access to the views in the database are restricted by default.&lt;/P&gt;
&lt;P&gt;I'd recommend using HeidiSQL (free). Assuming you are using the Windows installer, download the X64 .exe here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://www.heidisql.com/download.php" href="https://www.heidisql.com/download.php" target="_blank"&gt;https://www.heidisql.com/download.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy the .exe to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;C:\Program Files\MySQL\MySQL Server 5.6\lib&lt;/PRE&gt;
&lt;P&gt;Send a shortcut to your desktop and open a connection as the root MySQL user. Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
    <pubDate>Sun, 11 Feb 2018 22:24:13 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2018-02-11T22:24:13Z</dc:date>
    <item>
      <title>Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137939#M25021</link>
      <description>&lt;P&gt;Is there any way to see the sql query for the built in reports? I'm looking for this one specifically.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://library.netapp.com/ecmdocs/ECMP1653272/html/GUID-C7F78D5B-459E-49F4-BBFC-AF307F366B8E.html" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMP1653272/html/GUID-C7F78D5B-459E-49F4-BBFC-AF307F366B8E.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:03:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137939#M25021</guid>
      <dc:creator>ijustwantthemodule</dc:creator>
      <dc:date>2025-06-04T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137943#M25024</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a quick look for you...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;C:\&amp;gt;cd /d C:\Program Files\NetApp\ocum\reports\repository\public

C:\Program Files\NetApp\ocum\reports\repository\public&amp;gt;type aggregate-capacity-utilization.rptdesign | clip

"select * from ocum_report_birt.aggregatecapacityutilization"&lt;BR /&gt;&lt;BR /&gt;select `inventoryaggregate`.`objid` AS `aggrId`,`inventoryaggregate`.`name` AS `aggrName`,`inventoryaggregate`.`clusterId` AS `clusterId`,(select `cluster`.`name` from `netapp_model_view`.`cluster` where (`cluster`.`objid` = `inventoryaggregate`.`clusterId`)) AS `clusterName`,`hapair`.`haPairName` AS `haPair`,`hapair`.`objid` AS `haPairId`,`inventoryaggregate`.`nodeId` AS `nodeId`,`inventoryaggregate`.`sizeTotal` AS `totalDataCapacity`,`inventoryaggregate`.`sizeUsed` AS `usedDataCapacity`,`inventoryaggregate`.`sizeAvail` AS `availableDataCapacity`,`inventoryaggregate`.`snapshotSizeUsed` AS `snapshotReserveUsedCapacity`,`inventoryaggregate`.`snapshotSizeAvail` AS `snapshotReserveAvailCapacity`,`inventoryaggregate`.`snapshotSizeTotal` AS `snapshotReserveTotalCapacity`,`inventoryaggregate`.`totalCommitted` AS `totalCommitted`,`ocum`.`aggregateregressioninfo`.`bytesUsedPerDay` AS `bytesUsedPerDay`,cast((select floor(`ocum`.`aggregate`.`daysUntilFull`) from `ocum`.`aggregate` where (`inventoryaggregate`.`objid` = `ocum`.`aggregate`.`id`)) as unsigned) AS `daysToFull`,(case when (`inventoryaggregate`.`aggregateTypeRaw` = 'ssd') then 'ssd' when (`inventoryaggregate`.`isHybridEnabled` = 1) then 'flashPool' when ((`inventoryaggregate`.`aggregateTypeRaw` = 'vmdisk') or (`inventoryaggregate`.`aggregateTypeRaw` = 'hdd') or (`inventoryaggregate`.`aggregateTypeRaw` = 'lun')) then 'standard' end) AS `aggregateType`,`inventoryaggregate`.`raidTypeRaw` AS `raidType`,`inventoryaggregate`.`stateRaw` AS `state`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'event.growthRate.sensitivity') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `growthRateSensitivityThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'event.growthRate.minChangePct.aggregate') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `growthRateThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrSpaceFull') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `spaceFullThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrSpaceNearlyFull') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `spaceNearlyFullThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrOvercommitted') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `overcommittedThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrNearlyOvercommitted') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `nearlyOvercommittedThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrDaysUntilFull') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `daysUntilFullThreshold`,(select `ocum`.`optionchainvalue`.`optionValue` from `ocum`.`optionchainvalue` where ((`ocum`.`optionchainvalue`.`domainObject_id` = `inventoryaggregate`.`objid`) and (`ocum`.`optionchainvalue`.`optionName` = 'threshold.aggrSnapshotFull') and (`ocum`.`optionchainvalue`.`domainObject_type` = 'inventory.ontap.storage.Aggregate'))) AS `snapshotFullThreshold`,(case when (`inventoryaggregate`.`isSnapLock` = 0) then 'non_snaplock' else `inventoryaggregate`.`snapLockTypeRaw` end) AS `snapLockType` from ((`netapp_model_view`.`aggregate` `inventoryaggregate` left join `ocum_report_birt`.`hapairview` `hapair` on(((`inventoryaggregate`.`nodeId` = `hapair`.`node1Id`) or (`inventoryaggregate`.`nodeId` = `hapair`.`node2Id`)))) left join `ocum`.`aggregateregressioninfo` on((`inventoryaggregate`.`objid` = `ocum`.`aggregateregressioninfo`.`aggregate_id`)))&lt;/PRE&gt;
&lt;P&gt;If you connect to the OCUM database their is a table view called&amp;nbsp; "aggregatecapacityutilization" within the "ocum_report_birt" database&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 04:42:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137943#M25024</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-02-09T04:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137955#M25028</link>
      <description>&lt;P&gt;Thanks for the help. Is there a way to get access to the ocum_report_birt database on version 7.1? I have access to ocum_report but I'm getting access denied to the other.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 12:38:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137955#M25028</guid>
      <dc:creator>ijustwantthemodule</dc:creator>
      <dc:date>2018-02-09T12:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137980#M25037</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is possible to access the "ocum_report_birt" database however you need to connect to MySQL as the root user as access to the views in the database are restricted by default.&lt;/P&gt;
&lt;P&gt;I'd recommend using HeidiSQL (free). Assuming you are using the Windows installer, download the X64 .exe here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://www.heidisql.com/download.php" href="https://www.heidisql.com/download.php" target="_blank"&gt;https://www.heidisql.com/download.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy the .exe to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;C:\Program Files\MySQL\MySQL Server 5.6\lib&lt;/PRE&gt;
&lt;P&gt;Send a shortcut to your desktop and open a connection as the root MySQL user. Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 22:24:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137980#M25037</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-02-11T22:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137981#M25038</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more efficient method of getting the the SQL definitions for each view in the in 'ocum_report_view' database is to query the MySQL information schema:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT TABLE_NAME, VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA='ocum_report_birt' &lt;/PRE&gt;
&lt;P&gt;That will give the SQL for all views that OCUM reports are based on, alternately add an AND clause to filter by report name. EG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT TABLE_NAME, VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA='ocum_report_birt' AND TABLE_NAME = 'aggregatecapacityutilization'&lt;/PRE&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 22:54:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/137981#M25038</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-02-11T22:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query export of built in ocum reports.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/138001#M25043</link>
      <description>&lt;P&gt;Unfortunately it appears the root account is not accessible prior to version 7.2. We are do for an upgrade this month.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 13:21:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Query-export-of-built-in-ocum-reports/m-p/138001#M25043</guid>
      <dc:creator>ijustwantthemodule</dc:creator>
      <dc:date>2018-02-12T13:21:34Z</dc:date>
    </item>
  </channel>
</rss>

