<?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: OnTAP event query from SDK - want only events after a specified time in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/149076#M26984</link>
    <description>&lt;P&gt;How about PowerShell? Looks like you could get the information you need with the "Get-NcEmsMessage" cmdlet. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Connect-NcController &amp;lt;controller&amp;gt; &lt;BR /&gt;Get-NcEmsMessage -MessageName *fpolicy* -StartTime &lt;SPAN&gt;"9/28/2018 10:29:55"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;EDIT: The corresponding ZAPI call for that cmdlet is "&lt;SPAN&gt;ems-message-get-iter" if you'd prefer to query the API directly.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 14:58:13 GMT</pubDate>
    <dc:creator>donny_lang</dc:creator>
    <dc:date>2019-06-20T14:58:13Z</dc:date>
    <item>
      <title>OnTAP event query from SDK - want only events after a specified time</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/143050#M26147</link>
      <description>&lt;P&gt;I am attempting to write an EMS event query using the NMSDK against cDOT clusters that will only return events from a given timestamp forward. This would be similar to the OnTAP command:&lt;/P&gt;
&lt;P&gt;event log show -event *fpolicy*&amp;nbsp; -time &amp;gt;="9/28/2018 10:29:55"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query parameter seems to allow for queries AT a specified time, but not for AT OR AFTER ("&amp;gt;="). Am I missing something? Is there some way to specify the "time" field to accomplish this? It appears that it will only accept an integer value - number of seconds since the epoch - but there doesn't appear to be any provision for a relational operator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it matters I am using Perl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise. This would be a great boon to our troubleshooting and monitoring efforts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your attention to this matter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scott Lindley&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:16:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/143050#M26147</guid>
      <dc:creator>SCOTT_LINDLEY</dc:creator>
      <dc:date>2025-06-04T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP event query from SDK - want only events after a specified time</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/143431#M26205</link>
      <description>&lt;P&gt;If my python code help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;api = NaElement("event-iter")&lt;BR /&gt;xi = NaElement("time-range")&lt;BR /&gt; api.child_add(xi)&lt;BR /&gt;xi1 = NaElement("event-timestamp-range")&lt;BR /&gt; xi.child_add(xi1)&lt;BR /&gt;&lt;STRONG&gt;xi1.child_add_string("end-time", int(unix_timestamp))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; xi1.child_add_string("start-time", int(unix_timestamp_minus_30_min))&lt;/STRONG&gt;&lt;BR /&gt;xo = serv.invoke_elem(api)&lt;BR /&gt; xo1 = xo.child_get("records")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where time is could be any range though in my case I am using like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;current_time = datetime.datetime.now(datetime.timezone.utc)&lt;BR /&gt; unix_timestamp = current_time.timestamp() &lt;BR /&gt; unix_timestamp_minus_30_min = unix_timestamp - (5 * 60)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;now to past 30 min&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:27:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/143431#M26205</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2018-10-09T19:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP event query from SDK - want only events after a specified time</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/149075#M26983</link>
      <description>&lt;P&gt;Thanks for the reply, it's really appreciated. Unfortunately this is a query against Unified Manager, which only captures certain events from clusters. I'm looking for a query straight to the cluster so I can enumerate any event that occurs during the time frame. It appears that, while the CLI supports this to some extent, the API does not. Unfortunate.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:25:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/149075#M26983</guid>
      <dc:creator>SCOTT_LINDLEY</dc:creator>
      <dc:date>2019-06-20T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP event query from SDK - want only events after a specified time</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/149076#M26984</link>
      <description>&lt;P&gt;How about PowerShell? Looks like you could get the information you need with the "Get-NcEmsMessage" cmdlet. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Connect-NcController &amp;lt;controller&amp;gt; &lt;BR /&gt;Get-NcEmsMessage -MessageName *fpolicy* -StartTime &lt;SPAN&gt;"9/28/2018 10:29:55"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;EDIT: The corresponding ZAPI call for that cmdlet is "&lt;SPAN&gt;ems-message-get-iter" if you'd prefer to query the API directly.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:58:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/OnTAP-event-query-from-SDK-want-only-events-after-a-specified-time/m-p/149076#M26984</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2019-06-20T14:58:13Z</dc:date>
    </item>
  </channel>
</rss>

