Community maintenance is complete. Thank you for your patience!

Active IQ Unified Manager Discussions

OCUM Zapi filter for <event-iter>

francoisbnc

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

 

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

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.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public