Subscribe

OCUM Zapi filter for <event-iter>

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

Re: OCUM Zapi filter for <event-iter>

 

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.)

Re: OCUM Zapi filter for <event-iter>

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.