Active IQ Unified Manager Discussions

OCUM Zapi filter for <event-iter>

francoisbnc
2,859 Views

What is the format used to filter an event-iter zapi call.

 

basically I found :

 

    <event-type-filter-list>
      <event-type-filter>
        <event-filter>???</event-filter>
      </event-type-filter>
    </event-type-filter-list>

But I don't know how event-filter string should be formatted.

 

for example 

 <event-filter>type=snap_mirror</event-filter>

always return 0 record.

 

Any help appreciated

François

2 REPLIES 2

ekashpureff
2,828 Views

 

Francois -

 

Try just using a plain string for the filter.

 <event-filter>mirror</event-filter>

 

See also the OCUM API docs:

https://library.netapp.com/ecmdocs/ECMLP2677876/html/doc/perldoc/OCUMClassicAPI.html

 

I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)

francoisbnc
2,779 Views

with 

<?xml version="1.0" encoding="UTF-8"?>
<netapp  xmlns="http://www.netapp.com/filer/admin" version="1.0">
  <event-iter>
 
    <event-type-filter-list>
      <event-type-filter>
        <event-filter>mirror</event-filter>
      </event-type-filter>
    </event-type-filter-list>

  </event-iter>
</netapp>

the result is

<?xml version='1.0' encoding='UTF-8'?><netapp xmlns="http://www.netapp.com/filer/admin" version="1.0">

    <!-- Output of event-iter [Execution Time: 94 ms] -->
	<results status='passed'>
		<num-records>0</num-records>
		<records/>
	</results>
</netapp>

mirror won't work for me.

Public