Quantcast
Viewing all articles
Browse latest Browse all 16365

Dynamic query grouping

For our network, all node hostnames are formatted as: <role>.<street>-<city>.<state>.<region>.domain.com

 

For our shiny new NPM install, I was hoping to build dynamic queries to group the nodes. The idea was to build a parent group for the region, then a child group for the street/city. Getting the child groups filled was easy, but the trickier part is what to do with the nodes that I won't ever fit into a child group. These might be on-off devices which I'd prefer to keep in the parent group. The tough part is that I have no idea how to build a dynamic query for the parent group to include the nodes that match a particular region and are NOT members of a child group. If there was a way to have a dynamic query filter for hostnames that 'do not contain' certain keywords, this could be easy enough. Does anyone know if there is a way to perfom some SQL ninja actions in the dynamic query interface to make this happen?

 

BVD

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 16365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>