Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

EMS Messege Java

jsv

I want to see all EMS messages that are at severity "warning" or higher. At the moment my code recives all messages, it's about 8000 of them, and selects the ones I want. It takes about 3 minutes to gather. Is there a way to filter this in the NetApp to speed up the process?

 

EmsMessageGetIterRequest emsReq = new EmsMessageGetIterRequest();
Iterator<EmsMessageInfo> emsResp = runner.iterate(emsReq,10);
EmsMessageInfo ems;

while (emsResp.hasNext()) {
    ems = emsResp.next();

    if (!(ems.getEmsSeverity().equals("debug") || ems.getSeverity().equals("debug") || ems.getSeverity().equals("notice") || ems.getSeverity().equals("informational"))) {
        getEmsList().add(new NAEms(ems));
    }

}



0 REPLIES 0
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