NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

OCUM Zapi filter for <event-iter>

francoisbnc
4,316 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
4,285 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
4,236 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