<?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 ONTAP health via REST API in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160105#M137</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd like to ask if anybody knows which is the correct URI to get health of an ONTAP system. If I login to GUI, I see "&lt;SPAN style="font-family: inherit;"&gt;All systems are healthy&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;". Which URI would tell me that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Why I'm asking: I have a script which checks our E-Series storages every 15 minutes and there's a value "Optimal" or "Needs attention". This is enough to create a ticket to the technical team to check what's going on + some additional info where I pull which part of it went wrong, but no details. We don't need to filter tons of events and still get a ticket open, somebody looks at it. I'd like to get this simple script for the ONTAPs too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Karel&lt;/SPAN&gt;&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 10:49:54 GMT</pubDate>
    <dc:creator>KarelBP</dc:creator>
    <dc:date>2025-06-04T10:49:54Z</dc:date>
    <item>
      <title>ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160105#M137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd like to ask if anybody knows which is the correct URI to get health of an ONTAP system. If I login to GUI, I see "&lt;SPAN style="font-family: inherit;"&gt;All systems are healthy&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;". Which URI would tell me that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Why I'm asking: I have a script which checks our E-Series storages every 15 minutes and there's a value "Optimal" or "Needs attention". This is enough to create a ticket to the technical team to check what's going on + some additional info where I pull which part of it went wrong, but no details. We don't need to filter tons of events and still get a ticket open, somebody looks at it. I'd like to get this simple script for the ONTAPs too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Karel&lt;/SPAN&gt;&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 10:49:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160105#M137</guid>
      <dc:creator>KarelBP</dc:creator>
      <dc:date>2025-06-04T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160269#M145</link>
      <description>&lt;P&gt;Hi Karel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than connecting to each cluster to check the health status in your script individually have you considered querying AIQUM for all datasources (ONTAP Clusters) assuming you are using Active IQ (OCUM)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What programming language are you developing in? If you are using PowerShell check out this module i've developed which is for Active IQ 9.7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/matthew-beattie/AIQUM/blob/master/AIQUM.psm1" target="_blank" rel="noopener"&gt;https://github.com/matthew-beattie/AIQUM/blob/master/AIQUM.psm1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the function "Get-UMDatasource" (if your using another programming language you can atleast see the URI's in the code). AIQUM contains the clusters health status for each cluster and is automatically re-discovered every 15 minutes. Some other properties to monitor would be the last discovery time (EG if it's much more than 15 minutes then there is a communication issue between AIQUM and ONTAP and that should be investigated). The REST API shows expiring licenses etc so there is some useful information there if you are developing a health check. I have some powershell code which will does a basic health check on that if you are interested?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that gives you some ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 01:44:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160269#M145</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-10-15T01:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160317#M146</link>
      <description>&lt;P&gt;Oh yes, of course! I just didn't I think about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the hint. I actually pull this info from SANtricity Unifie&lt;SPAN style="font-family: inherit;"&gt;d Manager for the E-Series, I can do the same with ActiveIQ Unified Manager for the ONTAPs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple GET call to "/api/admin/datasources/clusters" on ActiveIQ Unified Manager and it's all right there in the answer, name and&amp;nbsp;cluster_health_status, basically the same as I'm getting with "/devmgr/v2/storage-systems" from SANtricity Unified Manager in name and status values. Now I need to identify equivalent of&amp;nbsp;/devmgr/v2/storage-systems/&amp;lt;systemID&amp;gt;/failures?details=false" and I can reuse my script as it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, thanks a lot.&lt;/P&gt;
&lt;P&gt;Karel&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 21:11:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160317#M146</guid>
      <dc:creator>KarelBP</dc:creator>
      <dc:date>2020-10-15T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160359#M148</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
&lt;P&gt;I've read thru your scripts. In command Get-UMEventID you're calling &lt;A href="https://$Server/api/management-server/events/$EventID" target="_blank"&gt;https://$Server/api/management-server/events/$EventID&lt;/A&gt;. This seems to be an undocumented function of the API. Is there a way to get a complete list of all events somehow? I didn't find it anywhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Karel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 19:09:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160359#M148</guid>
      <dc:creator>KarelBP</dc:creator>
      <dc:date>2020-10-17T19:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160364#M149</link>
      <description>&lt;P&gt;Hi Karel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a chrome plugin called &lt;A href="https://chrome.google.com/webstore/detail/webspy-explore-and-test-w/aedipmheomnpcbgmanofhaccebgapije?hl=en" target="_blank" rel="noopener"&gt;WebSpy&lt;/A&gt; to view the REST API's whilst invoking actions in the Web UI. The default URI for events is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://&amp;lt;%hostname%&amp;gt;/api/management-server/events?filter=impact_level,eq,Risk%7CIncident&amp;amp;filter=event_state,eq,NEW%7CACKNOWLEDGED&amp;amp;filter=triggered_time,ge,LAST_7d&amp;amp;sort=triggered_time~dsc&amp;amp;limit=100" target="_blank"&gt;https://&amp;lt;%hostname%&amp;gt;/api/management-server/events?filter=impact_level,eq,Risk%7CIncident&amp;amp;filter=event_state,eq,NEW%7CACKNOWLEDGED&amp;amp;filter=triggered_time,ge,LAST_7d&amp;amp;sort=triggered_time~dsc&amp;amp;limit=100&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you didn't want any filters and just list all events i guess you could use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://&amp;lt;%hostname%&amp;gt;/api/management-server/events" target="_blank"&gt;https://&amp;lt;%hostname%&amp;gt;/api/management-server/events&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Private API's not documented in the Swagger UI may change in future&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;</description>
      <pubDate>Sun, 18 Oct 2020 23:59:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160364#M149</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-10-18T23:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP health via REST API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160372#M151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the tip, I tried to install the same plugin, it shows various parameters depending how I set filters in the UI. What is interesting to me is that the links copied out of the UI with WebSpy plugin don't always work if called from PowerShell. I'm getting&amp;nbsp;Invoke-RestMethod : The remote server returned an error: (500) Internal Server Error. If there's a number of an event in the URI, then it works. If I remove it or add filter parameters, I'm getting error 500.&amp;nbsp; I've tried it on the VMware appliance and on Windows installation version 9.7, same behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Never mind, it's not an officially published function, I'll sit and wait for next version of the AIQUM. Or maybe I'll go bugging our account manager with a feature request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Karel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 11:54:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-health-via-REST-API/m-p/160372#M151</guid>
      <dc:creator>KarelBP</dc:creator>
      <dc:date>2020-10-19T11:54:54Z</dc:date>
    </item>
  </channel>
</rss>

