DX NetOps

 View Only

  • 1.  Question about an Odata Query

    Posted Mar 20, 2018 08:27 AM

    Is there a way in the Odata query builder to find only those devices where the reachability has been 0 (Not Reachable) for a certain amount of time? I have tried this, however, I am getting devices with everything above 0 as well. Here is my Odata built query:

     

    http://da-hostname:8581/odata/api/devices?&resolution=RATE&period=1h&$expand=reachabilitymfs&$select=ID,HostName,PrimaryIPAddress,reachabilitymfs/im_Reachability&$filter=((reachabilitymfs/im_Reachability eq 0))



  • 2.  Re: Question about an Odata Query

    Broadcom Employee
    Posted Mar 20, 2018 05:49 PM

    Hi Mitch,

     

    I was able to get a query like this to work in an r3.2 lab we have in support.

     

     

    Changing the targeted reachability values, and time ranges, did change the data sets returned and it appeared at first glance they were only those that met the criteria.

     

     

    Mike



  • 3.  RE: Re: Question about an Odata Query

    Posted Aug 28, 2024 10:40 AM

    Can we export list of Threshold profiles created , i can only view in table format, no option to export. Do we have Query to export it .

    I tried rest documentation and tried executing in postman client, however there is no list coming with itemID also

    http://DA:8581/rest/thresholdmonitoring/config/documentation




  • 4.  RE: Re: Question about an Odata Query

    Broadcom Employee
    Posted Aug 28, 2024 11:38 AM
    Edited by Jeffrey Pinard Aug 28, 2024 11:37 AM

    Yes,

    http://DA:8581/rest/eventprofilegroups the folders that profiles are under

    http://DA:8581/rest/eventprofiles the profiles themselves, with itemids of the rules that make up each

    http://DA:8581/rest/eventrules the rules that make up the profiles




  • 5.  Re: Question about an Odata Query

    Posted Mar 20, 2018 06:57 PM

    Sorry, I should of specified PM 3.5. I too was able to get this to work about a year ago on 3.2. I think I just got it to work in 3.5. But I had to use the Aggregate filter function.



  • 6.  Re: Question about an Odata Query

    Posted Apr 12, 2018 11:49 AM

    HI Mitch, so just want to double check, sounds like you are all set then?  let us know if more help is needed.