<?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: Quick query - Do you need to select resource type when adding an alert in OCUM 6.x in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132517#M24058</link>
    <description>&lt;P&gt;Thank you Matt for the quick response and for excellent details. I really appreciate it.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2017 13:41:45 GMT</pubDate>
    <dc:creator>SAN-NAS</dc:creator>
    <dc:date>2017-07-05T13:41:45Z</dc:date>
    <item>
      <title>Quick query - Do you need to select resource type when adding an alert in OCUM 6.x</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132431#M24034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you need to select resource type when adding an alert in OCUM 6.x. In am told you can set an alert based on either resource type or by selecting event type. Is that correct ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:53:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132431#M24034</guid>
      <dc:creator>SAN-NAS</dc:creator>
      <dc:date>2025-06-04T14:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quick query - Do you need to select resource type when adding an alert in OCUM 6.x</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132434#M24035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tested this for you on OCUM 7.1P2 GA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its possible to create an OCUM alarm and configure it to apply to either a resource type (EG cluster, node, vserver etc) or by event status (Critical, Error, Warning).&lt;/P&gt;&lt;P&gt;As you'll see in the image below the alarm has no resource type configured, it applies to "all critical events".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7375iA834A278E440B25F/image-size/original?v=1.0&amp;amp;px=-1" alt="ocum_alarms.png" title="ocum_alarms.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this configuration works by assigning a one liner powershell script to the alarm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$Args[1] | Out-File -FilePath $($(Split-Path($MyInvocation.MyCommand.Path)) + "\" + $((Get-Date).ToString("yyyy_MM_dd_HH_mm_ss_fff")) + "_event_id_" + $Args[1] + ".log")&lt;/PRE&gt;&lt;P&gt;Note: All this does is create a file by date time and event ID number in the scripts working directory (Where you upload the alarm script to)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default location for the alarm scripts is "C:\Program Files\NetApp\ocum\scriptPlugin"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When testing the alarm (by admin failing a disk on a simulator) it generates the following events:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7376iA79BC5D1C52B928B/image-size/original?v=1.0&amp;amp;px=-1" alt="ocum_events.png" title="ocum_events.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configure 3 alarms (one for critical, error and warning event types). To verify if the alarm script created a file for each event associated with the alarms i checked that 3 files were created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C:\Program Files\NetApp\ocum\scriptPlugin&amp;gt;dir /b | find /i "2017_07_03_09"
2017_07_03_09_39_55_053_event_id_18.log
2017_07_03_09_40_16_136_event_id_19.log
2017_07_03_09_40_16_167_event_id_20.log&lt;/PRE&gt;&lt;P&gt;So to summarize you, when configuring OCUM alarms you can:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create generic alarms to filter events by status&lt;/LI&gt;&lt;LI&gt;Create specific alarms to filter events by resource type&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 00:06:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132434#M24035</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2017-07-03T00:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quick query - Do you need to select resource type when adding an alert in OCUM 6.x</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132517#M24058</link>
      <description>&lt;P&gt;Thank you Matt for the quick response and for excellent details. I really appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 13:41:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Quick-query-Do-you-need-to-select-resource-type-when-adding-an-alert-in-OCUM-6-x/m-p/132517#M24058</guid>
      <dc:creator>SAN-NAS</dc:creator>
      <dc:date>2017-07-05T13:41:45Z</dc:date>
    </item>
  </channel>
</rss>

