7 Replies Latest reply on Apr 5, 2017 4:27 AM by Andrew Waters

    Query a hosts\devices via IP-Range

    Erez Frenkel
      Share This:

      I would like to run a query that will show a hosts via ip-range

       

      I can run a query that will find me all the hosts inside few subnets like: 137.72.93.*, 137.72.94.*, 137.72.94.*

       

      Query:

      SEARCH Host WHERE (NODECOUNT(TRAVERSE DeviceWithAddress:DeviceAddress:IPv4Address:IPAddress WHERE ip_addr LIKE ("^" + '137\\.72\\.93\\.') or ip_addr LIKE ("^" + '137\\.72\\.94\\.') or ip_addr LIKE ("^" + '137\\.72\\.95\\.')))

       

      But, I want a query like that : 137.72.93-95.*

       

      Can I do that?

       

      Thanks a lot,