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.
To learn more, please review the information in this blog post.

Software Development Kit (SDK) and API Discussions

EMS Messege Java

jsv
1,836 Views

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
Public