<?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: OCUM 7.X create/configure alert through CLI or SDK/API in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/142838#M26101</link>
    <description>&lt;P&gt;I know this is an old thread but Im look for help with this command. Im a systems developer and have no experience or direct involvement with NetApp stuff. Im writing some code to automate the creation and management of SMB shares on a netapp array using our service portal software. Part of our process is to set up an alert for each share to notify the owner that the share is almost out of space. I found the dcm CLI and am trying to execute a create command. However when i try to add the resource object key to the CLI it fails with a&amp;nbsp; generic error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dfm alert create -v "Warning" -h "Volume Space Nearly Full" -E&amp;nbsp;email@work.com&amp;nbsp;-r 2d8d7890-3a14-11e8-becb-00a098d3e52c:type=volume,uuid=5fc7b798-6a50-4eb6-bd21-86f031f62196 clitest3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ive tried every variation of the resource object key i could think of, single quotes, double quotes, just the first part, just the last part, etc but nothing seems to work. DO you have any working examples of the command working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i run that same command without the -r section it creates the alert as expected with not resource attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you know what the -b and -S do?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 21:28:33 GMT</pubDate>
    <dc:creator>pizzle85</dc:creator>
    <dc:date>2018-09-20T21:28:33Z</dc:date>
    <item>
      <title>OCUM 7.X create/configure alert through CLI or SDK/API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132912#M24142</link>
      <description>&lt;P&gt;&amp;nbsp;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IHAC which need to create or configure OCUM Alert through API/SDK&lt;/P&gt;&lt;P&gt;Customer is using OCUM deployed as OVA and search for a way to manage Alert from API/SDK (not through GUI to summarize)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OCUM CLI with windows or RHEL version does not allow this too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to answer this customer request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:49:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132912#M24142</guid>
      <dc:creator>masson</dc:creator>
      <dc:date>2025-06-04T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: OCUM 7.X create/configure alert through CLI or SDK/API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132925#M24146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the DFM 7.X API's in the NMSDK for you. There is no "alarm" API in OCUM as there was previously in DFM 5.X (The used to be an "AlarmCreate" method in DFM)&lt;/P&gt;&lt;P&gt;In OCUM 7.X there is a CLI available to manage alarms. Here's the output from OCUM 7.1P2 on Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C:\&amp;gt;dfm cli login -u &amp;lt;%username%&amp;gt; -p &amp;lt;%password%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;C:\&amp;gt;dfm version&lt;BR /&gt;dfm 7.1P2&lt;BR /&gt;&lt;BR /&gt;C:\&amp;gt;dfm alert create --help

NAME
    create -- Create a new alert, triggered by particular events specified by
              the options.

SYNOPSIS
    dfm alert create [ -C &amp;lt;event-class&amp;gt; ] [ -h &amp;lt;event-names&amp;gt;,... ]
                     [ -v &amp;lt;event-severities&amp;gt;,... ] [ -l &amp;lt;time-from&amp;gt; ]
                     [ -m &amp;lt;time-to&amp;gt; ] [ -i &amp;lt;repeat-interval&amp;gt; ] [ -b  ] [ -S  ]
                     [ -A &amp;lt;admin-login-names&amp;gt;,... ]
                     [ -r &amp;lt;resource-object-keys&amp;gt;,... ]
                     [ -E &amp;lt;email-addresses&amp;gt;,... ] &amp;lt;alert-name&amp;gt;
C:\&amp;gt;dfm alert --help

NAME
    alert -- Create, modify, delete, test, and list alerts.

COMMANDS
    dfm alert add     - Adds fields to the Alert.
    dfm alert create  - Create a new alert, triggered by particular events
                        specified by the options.
    dfm alert delete  - Delete fields from the Alert.
    dfm alert destroy - Remove the alert completely.
    dfm alert disable - Disable the alert.
    dfm alert enable  - Enable the alert.
    dfm alert list    - List the existing alerts.
    dfm alert modify  - Change the settings for an alert.
    dfm alert test    - Tests alert.

DESCRIPTION
    The alert command manages the list of administrators  who are interested in
    being alerted when different  types of events occur.&lt;/PRE&gt;&lt;P&gt;I'd assume it's also possible with the OCUM vApp via SSH but you'd have to provide credentials to the dfm cli login command.&lt;/P&gt;&lt;P&gt;It might be possible via WFA with Invoke-NcSsh CmdLet and running multiple dfm commands within the powershell command.&lt;/P&gt;&lt;P&gt;I'd recommend raising a BURT\RFE to add the alert comand to the supported OCUM API's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 01:03:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132925#M24146</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2017-07-20T01:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: OCUM 7.X create/configure alert through CLI or SDK/API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132930#M24148</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've search in every documentation available for OCUM 7.1 and found nothing about this CLI&lt;/P&gt;&lt;P&gt;I only found information arround "um" cli&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7417i6DEB66CA325E42E3/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing about "dfm" CLI&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.netapp.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also read that CLI are only available for RHEL and Windows version not for OVA version&lt;/P&gt;&lt;P&gt;With OVA version when you rich the&amp;nbsp;@IP through SSH, you get the maintenance menu only, or i miss something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:33:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/132930#M24148</guid>
      <dc:creator>masson</dc:creator>
      <dc:date>2017-07-20T07:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: OCUM 7.X create/configure alert through CLI or SDK/API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/142838#M26101</link>
      <description>&lt;P&gt;I know this is an old thread but Im look for help with this command. Im a systems developer and have no experience or direct involvement with NetApp stuff. Im writing some code to automate the creation and management of SMB shares on a netapp array using our service portal software. Part of our process is to set up an alert for each share to notify the owner that the share is almost out of space. I found the dcm CLI and am trying to execute a create command. However when i try to add the resource object key to the CLI it fails with a&amp;nbsp; generic error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dfm alert create -v "Warning" -h "Volume Space Nearly Full" -E&amp;nbsp;email@work.com&amp;nbsp;-r 2d8d7890-3a14-11e8-becb-00a098d3e52c:type=volume,uuid=5fc7b798-6a50-4eb6-bd21-86f031f62196 clitest3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ive tried every variation of the resource object key i could think of, single quotes, double quotes, just the first part, just the last part, etc but nothing seems to work. DO you have any working examples of the command working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i run that same command without the -r section it creates the alert as expected with not resource attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you know what the -b and -S do?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 21:28:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OCUM-7-X-create-configure-alert-through-CLI-or-SDK-API/m-p/142838#M26101</guid>
      <dc:creator>pizzle85</dc:creator>
      <dc:date>2018-09-20T21:28:33Z</dc:date>
    </item>
  </channel>
</rss>

