DX Infrastructure Manager

Expand all | Collapse all

How to use RegEx in Alarm Filters-REST API?

Jump to Best Answer
  • 1.  How to use RegEx in Alarm Filters-REST API?

    Posted 08-08-2017 09:23 AM

    Hi,

     

    I'm try to filter Alarms using RegEx in my REST Call. Below is the sample xml, which I'm posting to http://localhost/rest/alarms/ , but I'm not getting any alarms with hostname starting with 'uim'. If anyone knows how to, then please help.

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <alarmfilter>
    <hostname>/^uim*/</hostname>
    </alarmfilter> 

     

    Thanks



  • 2.  Re: How to use RegEx in Alarm Filters-REST API?
    Best Answer

    Posted 08-08-2017 12:42 PM

    Hi,

     

    Can you confirm the UIM version you are using, and the version of webservices_rest?  

     

    There is a bug in 8.5.1 where regex does not work properly.  This is addressed in a hotfix:

    webservices_rest_8.51-HF3

    It can be obtained from the following site:

     

    CA Unified Infrastructure Management Hotfix Index - CA Technologies 



  • 3.  Re: How to use RegEx in Alarm Filters-REST API?

    Posted 08-09-2017 04:25 AM

    Hi, Even after installing Hotfix, I'm not getting the expected output. I'm i missing something?

    Version: 8.51



  • 4.  Re: How to use RegEx in Alarm Filters-REST API?

    Posted 08-09-2017 10:31 AM

    Try the following:

     

    1. deactivate wasp probe

    2. delete all the contents of the folder:  /wasp/work/

    3. clear the browser cache "from the beginning of time"

    4. activate wasp and check again

     

    If this still does not resolve the issue I would recommend opening a support case.