DX Unified Infrastructure Management

 View Only

Expand all | Collapse all

How to create a filter for capture alarms specific with UIMAPI

  • 1.  How to create a filter for capture alarms specific with UIMAPI

    Posted Jul 09, 2025 12:30 PM
    Hello everyone, how are you?
     
    I need to share to another system through UIMAPI only some alarms specific, how can i to create the filter ?
     
    I tested different options but isn't work... returns all alarms

    Alarm one:

    curl -X GET "https://operatorconsole.host.local:443/uimapi/alarms" \
         -H "Authorization: Authorization: Basic <base64_encoded_credentials>" \
         -H "Content-Type: application/json" \
         -k \
         -G \
         --data-urlencode "filter=robot eq 'servldap01' and probe eq 'logmon' and message like '%Conexion%' and message like '%NO ESTABLECIDO%'" \
         -o testApiFilter1.log

    Alarm two:

    curl -X GET "https://operatorconsole.host.local:443/uimapi/alarms" \
         -H "Authorization: Authorization: Basic <base64_encoded_credentials>" \
         -H "Content-Type: application/json" \
         -k \
         -G \
         --data-urlencode "filter=robot eq 'srvapp22-p10' and probe eq 'oracle' and message like '%El ID de conexion%'" \
         -o testApiFilter2.log

    or a combination

    curl -X GET "https://operatorconsole.host.local:443/uimapi/alarms" \
         -H "Authorization: Authorization: Basic <base64_encoded_credentials>" \
         -H "Content-Type: application/json" \
         -k \
         -G \
         --data-urlencode "filter=(robot eq 'servldap01' and probe eq 'logmon' and message like '%Conexion%' and message like '%NO ESTABLECIDO%') or (robot eq 'srvapp22-p10' and probe eq 'oracle' and message like '%El ID de conexion')" \
         -o testApiFilter.log

    Any idea ?



  • 2.  RE: How to create a filter for capture alarms specific with UIMAPI

    Broadcom Employee
    Posted Jul 17, 2025 06:59 PM
    Edited by Christopher Pearson Jul 17, 2025 07:28 PM

    This looks like you would actually want to use the Post /uimapi/alarms method to perform filtered queries:

    I took the payload that I had from F12 in OC, and was able to return the boot alarms that I had using the following:

    {"pageNumber":0,"pageNumberOnResponse":0,"pageSize":50,"quickFilter":"","filters":["visible = true"],"colFilters":[{"column":"message","operator":"CONTAINS","value":"boot","negated":false}],"showHistorical":false,"showInvisible":true,"sort":[{"sortColumn":"alarmId","sortDirection":"asc"}],"context":{},"selectedAlarmId":null,"customFilters":0}




  • 3.  RE: How to create a filter for capture alarms specific with UIMAPI

    Broadcom Employee
    Posted Jul 17, 2025 07:45 PM


    {
    "assigned_to": "string", "custom1": "string", "custom2": "string", "custom3": "string", "custom4": "string", "custom5": "string", "deviceIds": "string", "domain": "string", "hostname": "string", "hub": "string", "id": "string", "includeClosed": "string", "level": "string", "message": "string", "message_count": "string", "origin": "string", "probe": "string", "robot": "string", "source": "string", "subsystem": "string", "subsystem_id": "string", "timeArrival": "2025-07-17T23:36:59.273Z", "timeLast": "2025-07-17T23:36:59.273Z", "userTag1": "string", "userTag2": "string", "visible": true }


    or

    /uimapi/alarms/v1 #doesnt seem to any obvious difference between the two versions.

    { "assigned_to": "string", "custom1": "string", "custom2": "string", "custom3": "string", "custom4": "string", "custom5": "string", "deviceIds": "string", "domain": "string", "hostname": "string", "hub": "string", "id": "string", "includeClosed": "string", "level": "string", "message": "string", "message_count": "string", "origin": "string", "probe": "string", "robot": "string", "source": "string", "subsystem": "string", "subsystem_id": "string", "timeArrival": "2025-07-17T23:36:59.286Z", "timeLast": "2025-07-17T23:36:59.286Z", "userTag1": "string", "userTag2": "string", "visible": true }


    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------