<?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: how to purge ocum databse? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150522#M27149</link>
    <description>&lt;P&gt;ok thanks.&lt;/P&gt;
&lt;P&gt;sorry for insisting but is there an unsupported way to purge all data manually? let's say I want to keep data for less than 1 month that the builtin data retention offers, I want to keep them for 2 weeks only. how do I do that?&lt;/P&gt;
&lt;P&gt;thanks again,&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 19:44:52 GMT</pubDate>
    <dc:creator>elic_co</dc:creator>
    <dc:date>2019-08-27T19:44:52Z</dc:date>
    <item>
      <title>how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150482#M27141</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a way to run a manual purging of the mysql db in ocum to reduce the number of objects? (for example old resolved and obsolete events)&lt;/P&gt;
&lt;P&gt;I mainly want to clear all the events that were ever saved and shrink the table.&lt;/P&gt;
&lt;P&gt;Old and resolved events should be deleted and unresolved events just should be re-discovered in the next 15 minutes after an ocum monitoring round.&lt;/P&gt;
&lt;P&gt;Achieving this from the mysql command line is also an options.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 15:12:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150482#M27141</guid>
      <dc:creator>elic_co</dc:creator>
      <dc:date>2019-08-25T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150501#M27146</link>
      <description>&lt;P&gt;There is no supported method to purge Events manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, Unified Manager (rebranded as Active IQ Unified Manager from OnCommand Unified Manager with the 9.6 release) has inroduced a feature to allow you to set Event Retention and Performance Data Retention in the UM 9.6 release.&amp;nbsp; You may view the Help for this feature here:&amp;nbsp; &lt;A href="https://library.netapp.com/ecmdocs/ECMLP2853092/html/frameset.html.&amp;nbsp;" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMLP2853092/html/frameset.html.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Screenshot for the feature view with defaults:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataRetention-Warning.jpg" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9262i96911D4F96BED423/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataRetention-Warning.jpg" alt="DataRetention-Warning.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Screenshot for the feature view with warning when Performance Data Retention interval is less than Event Retention interval:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataRetention-Defaults.jpg" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9263i40188945C2E7DD3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataRetention-Defaults.jpg" alt="DataRetention-Defaults.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 15:19:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150501#M27146</guid>
      <dc:creator>marz</dc:creator>
      <dc:date>2019-08-26T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150516#M27147</link>
      <description>&lt;P&gt;Thank you very much for the help.&lt;/P&gt;
&lt;P&gt;Is there an unsupported way to perform that? I realize that it's a risk that I take on myself and I'll be sure to take a full backup of the ocum server before that.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 16:26:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150516#M27147</guid>
      <dc:creator>elic_co</dc:creator>
      <dc:date>2019-08-27T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150520#M27148</link>
      <description>&lt;P&gt;There was no method developed for manual purging of only Event data as the in-product feature was on the roadmap (and released already).&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 17:57:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150520#M27148</guid>
      <dc:creator>marz</dc:creator>
      <dc:date>2019-08-27T17:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150522#M27149</link>
      <description>&lt;P&gt;ok thanks.&lt;/P&gt;
&lt;P&gt;sorry for insisting but is there an unsupported way to purge all data manually? let's say I want to keep data for less than 1 month that the builtin data retention offers, I want to keep them for 2 weeks only. how do I do that?&lt;/P&gt;
&lt;P&gt;thanks again,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 19:44:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/150522#M27149</guid>
      <dc:creator>elic_co</dc:creator>
      <dc:date>2019-08-27T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to purge ocum databse?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/444218#M28477</link>
      <description>&lt;P&gt;There is a way to effect manual purging of events.&amp;nbsp; This depends on the OCUM/ActiveIQ API, which was actually quite rich in functionality.&amp;nbsp; I don't know if it has extended to more recent versions, last time I used it was against the first AIQUM 9.x release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, get yourself the NetApp Management SDK from the Support site.&amp;nbsp; The NMSDK documents all the old ZAPI calls as well as the effective equivalent of the ZAPI calls to OCUM/AIQUM.&amp;nbsp; Use the "perl bindings" section as it provides the most complete list of APIs and parameters.&amp;nbsp; Whoever did the Perl stuff for the SDK - whether you use perl or not - did us all a huge favor.&amp;nbsp; The normal way to make a ZAPI call was to manually build the XML to submit to the Controllers/OCUM.&amp;nbsp; The perl bindings made each API into a function call that would automatically build the XML from the parameters provided and similarly automatically unwind the response XML data on return.&amp;nbsp; Even if you don't use perl - the documentation here is the most complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case - the process was to first iterate all the events, say more recent than a particular date but only up to a certain date.&amp;nbsp; Then, be sure the event is marked "resolved" - another API call.&amp;nbsp; Then when all events are iterated and resolved, there is a "purge" call that will purge all resolved events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API to OCUM/AIQUM was never well publicized.&amp;nbsp; These similar calls did not make the REST transition to my knowledge.&amp;nbsp; But with a little digging, you can find all kinds of capabilities in these tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 23:27:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/how-to-purge-ocum-databse/m-p/444218#M28477</guid>
      <dc:creator>BobG</dc:creator>
      <dc:date>2023-05-11T23:27:14Z</dc:date>
    </item>
  </channel>
</rss>

