<?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 Perl DFM 5.2 API : event_list_iter_start in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-DFM-5-2-API-event-list-iter-start/m-p/109935#M1620</link>
    <description>&lt;P&gt;Perl DFM 5.2 API : event_list_iter_start giving 0 records in output even if there are events present in DFM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;require 5.6.1;&lt;BR /&gt;use lib '&amp;lt;path_to_nmsdk_root&amp;gt;/lib/perl/NetApp';&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use NaServer;&lt;BR /&gt;use NaElement;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $s = new NaServer('scspn0061845002.lab.eng.btc.netapp.in', 1 , 0);&lt;BR /&gt;$s-&amp;gt;set_server_type('DFM');&lt;BR /&gt;$s-&amp;gt;set_transport_type('HTTP');&lt;BR /&gt;$s-&amp;gt;set_port(8080);&lt;BR /&gt;$s-&amp;gt;set_style('LOGIN');&lt;BR /&gt;$s-&amp;gt;set_admin_user('administrator', '&amp;lt;password&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $api = new NaElement('event-list-iter-start');&lt;/P&gt;&lt;P&gt;my $xi = new NaElement('event-application-list');&lt;BR /&gt;$api-&amp;gt;child_add($xi);&lt;/P&gt;&lt;P&gt;$xi-&amp;gt;child_add_string('event-application-type','&amp;lt;event-application-type&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('event-id','&amp;lt;event-id&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xi1 = new NaElement('event-severities');&lt;BR /&gt;$api-&amp;gt;child_add($xi1);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$xi1-&amp;gt;child_add_string('obj-status','critical');&lt;/STRONG&gt;&lt;BR /&gt;$api-&amp;gt;child_add_string('event-source-id','&amp;lt;event-source-id&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xi2 = new NaElement('event-type-filter-list');&lt;BR /&gt;$api-&amp;gt;child_add($xi2);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $xi3 = new NaElement('event-type-filter');&lt;BR /&gt;$xi2-&amp;gt;child_add($xi3);&lt;/P&gt;&lt;P&gt;$xi3-&amp;gt;child_add_string('event-filter','&amp;lt;event-filter&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('is-acknowledged','false');&lt;BR /&gt;$api-&amp;gt;child_add_string('max-events','&amp;lt;max-events&amp;gt;');&lt;BR /&gt;&lt;STRONG&gt;$api-&amp;gt;child_add_string('object-management-filter','node');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;my $xi4 = new NaElement('time-range');&lt;BR /&gt;$api-&amp;gt;child_add($xi4);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $xi5 = new NaElement('event-timestamp-range');&lt;BR /&gt;$xi4-&amp;gt;child_add($xi5);&lt;/P&gt;&lt;P&gt;$xi5-&amp;gt;child_add_string('end-time','&amp;lt;end-time&amp;gt;');&lt;BR /&gt;$xi5-&amp;gt;child_add_string('start-time','&amp;lt;start-time&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('timeout','&amp;lt;timeout&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xo = $s-&amp;gt;invoke_elem($api);&lt;BR /&gt;if ($xo-&amp;gt;results_status() eq 'failed') {&lt;BR /&gt;print 'Error:\n';&lt;BR /&gt;print $xo-&amp;gt;sprintf();&lt;BR /&gt;exit 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;print 'Received:\n';&lt;BR /&gt;print $xo-&amp;gt;sprintf();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8' ?&amp;gt;&lt;BR /&gt;&amp;lt;netapp version='1.0' xmlns='&lt;A target="_blank"&gt;http://www.netapp.com/filer/admin'&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Output of event-list-iter-start [Execution Time: 69 ms] --&amp;gt;&lt;BR /&gt;&amp;lt;results status='passed'&amp;gt;&lt;BR /&gt;&amp;lt;records&amp;gt;0&amp;lt;/records&amp;gt;&lt;BR /&gt;&amp;lt;tag&amp;gt;Event_List69_6852&amp;lt;/tag&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Output of event-list-iter-end [Execution Time: 7 ms] --&amp;gt;&lt;BR /&gt;&amp;lt;results status='passed'/&amp;gt;&lt;BR /&gt;&amp;lt;/netapp&amp;gt;&lt;BR /&gt;s&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 23:16:29 GMT</pubDate>
    <dc:creator>Rutul</dc:creator>
    <dc:date>2025-06-04T23:16:29Z</dc:date>
    <item>
      <title>Perl DFM 5.2 API : event_list_iter_start</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-DFM-5-2-API-event-list-iter-start/m-p/109935#M1620</link>
      <description>&lt;P&gt;Perl DFM 5.2 API : event_list_iter_start giving 0 records in output even if there are events present in DFM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;require 5.6.1;&lt;BR /&gt;use lib '&amp;lt;path_to_nmsdk_root&amp;gt;/lib/perl/NetApp';&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use NaServer;&lt;BR /&gt;use NaElement;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $s = new NaServer('scspn0061845002.lab.eng.btc.netapp.in', 1 , 0);&lt;BR /&gt;$s-&amp;gt;set_server_type('DFM');&lt;BR /&gt;$s-&amp;gt;set_transport_type('HTTP');&lt;BR /&gt;$s-&amp;gt;set_port(8080);&lt;BR /&gt;$s-&amp;gt;set_style('LOGIN');&lt;BR /&gt;$s-&amp;gt;set_admin_user('administrator', '&amp;lt;password&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $api = new NaElement('event-list-iter-start');&lt;/P&gt;&lt;P&gt;my $xi = new NaElement('event-application-list');&lt;BR /&gt;$api-&amp;gt;child_add($xi);&lt;/P&gt;&lt;P&gt;$xi-&amp;gt;child_add_string('event-application-type','&amp;lt;event-application-type&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('event-id','&amp;lt;event-id&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xi1 = new NaElement('event-severities');&lt;BR /&gt;$api-&amp;gt;child_add($xi1);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$xi1-&amp;gt;child_add_string('obj-status','critical');&lt;/STRONG&gt;&lt;BR /&gt;$api-&amp;gt;child_add_string('event-source-id','&amp;lt;event-source-id&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xi2 = new NaElement('event-type-filter-list');&lt;BR /&gt;$api-&amp;gt;child_add($xi2);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $xi3 = new NaElement('event-type-filter');&lt;BR /&gt;$xi2-&amp;gt;child_add($xi3);&lt;/P&gt;&lt;P&gt;$xi3-&amp;gt;child_add_string('event-filter','&amp;lt;event-filter&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('is-acknowledged','false');&lt;BR /&gt;$api-&amp;gt;child_add_string('max-events','&amp;lt;max-events&amp;gt;');&lt;BR /&gt;&lt;STRONG&gt;$api-&amp;gt;child_add_string('object-management-filter','node');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;my $xi4 = new NaElement('time-range');&lt;BR /&gt;$api-&amp;gt;child_add($xi4);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $xi5 = new NaElement('event-timestamp-range');&lt;BR /&gt;$xi4-&amp;gt;child_add($xi5);&lt;/P&gt;&lt;P&gt;$xi5-&amp;gt;child_add_string('end-time','&amp;lt;end-time&amp;gt;');&lt;BR /&gt;$xi5-&amp;gt;child_add_string('start-time','&amp;lt;start-time&amp;gt;');&lt;BR /&gt;$api-&amp;gt;child_add_string('timeout','&amp;lt;timeout&amp;gt;');&lt;/P&gt;&lt;P&gt;my $xo = $s-&amp;gt;invoke_elem($api);&lt;BR /&gt;if ($xo-&amp;gt;results_status() eq 'failed') {&lt;BR /&gt;print 'Error:\n';&lt;BR /&gt;print $xo-&amp;gt;sprintf();&lt;BR /&gt;exit 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;print 'Received:\n';&lt;BR /&gt;print $xo-&amp;gt;sprintf();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8' ?&amp;gt;&lt;BR /&gt;&amp;lt;netapp version='1.0' xmlns='&lt;A target="_blank"&gt;http://www.netapp.com/filer/admin'&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Output of event-list-iter-start [Execution Time: 69 ms] --&amp;gt;&lt;BR /&gt;&amp;lt;results status='passed'&amp;gt;&lt;BR /&gt;&amp;lt;records&amp;gt;0&amp;lt;/records&amp;gt;&lt;BR /&gt;&amp;lt;tag&amp;gt;Event_List69_6852&amp;lt;/tag&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Output of event-list-iter-end [Execution Time: 7 ms] --&amp;gt;&lt;BR /&gt;&amp;lt;results status='passed'/&amp;gt;&lt;BR /&gt;&amp;lt;/netapp&amp;gt;&lt;BR /&gt;s&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:16:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-DFM-5-2-API-event-list-iter-start/m-p/109935#M1620</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2025-06-04T23:16:29Z</dc:date>
    </item>
  </channel>
</rss>

