This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

How to group sites by IP subnet

Hi Have I missed something obvious? I can't find anyway to create a group based on an IP subnet, we have 100's of stores with the IP's:-

10.8.0.0 255.224.0.0

Some of the IP's outside that range are used by the core store network so I need to be able to create a dynamic group that will include the stores but not the central kit.

Can I create a group using a dynamic query that will include these IP ranges alone?

I only see begins with, is, is not, end with, contains, matches. I need to only include the thigns in the above subnets?

Thanks,

worto.

  • Looks like you are right.There is no option to give a IP range or more customizable option.I can help you with a work around and will add this to enhancement list.

    How many IPs in number(approx) are in the core store network?If its handful then you should be able to give them as "is not" to accomplish them.If it is going to a bunch of them,I could suggest another way but it could take off more time.

    Just a hint:Using Custom properties Editor tool.You can add a field separately wherein you could import the data for the nodes list differentiating the IPs in the core network and ones not belonging to core network.By doing so,the new field option would be available in the drop down,to filter accordingly.

    Having said all this I will still go ahead and add this to the enhancement list.Thank you for bringing this up.

  • it would be awesome to have it like cisco's wild bits.  I have security camera's and they all fall within a specific range in the subnet.

    As an example, 192.168.<LOC>.X, where location could be 32-63 (perfect world here) and if x 22 or 23, it is a camera.  for a Cisco Access list I would use 192.168.32.22 0.31.0.1 and I would get all of them.

    Or even better, if you made it a regular expression! Mine could be (192\.168\.[32-63]\.[21,22]) and his could be (10\.[8-16]\.0\.0)

  • (I might have already posted this, just it's not updating in my browser, if so, sorry)

    You should also consider using cisco wildbits, or even better, regular expressions!  This could get him what he wants and open it up for even more customization.

  • Hi Netlogix,

    Not sure you could satisfy his use case with Regex.

    So let me make sure I understand the base request: you'd like to build a dynamic group query, which would automatically put in the group, the IP's from 10.0.0.1 to 10.31.255.254 , based on your example

    Did I get that right?

    To help you if you can't do the math in your head, like me...

  • REGEX for 10.0.0.0 to 10.31.255.254:

    "(10\.([0-9]|[1-2][0-9]|3[0-1])\..*)"

  • Oh, for 10.8.0.0 - 10.39.255.255, which might be what the original request was for, would be:

    "(10\.([8-9]|[1-3][0-9])\..*)" but you can not do that with a single subnet mask.

    If you want any other examples, I would be happy to provide them to show how regex would be better because you can do almost anything with it.

    if you want to check me, use www.regular-expressions.info/javascriptexample.html

    Oh, also, if you invested the time in regex instead of ip range or subnet, then you could re-use it for any strings, Caption, Custom strings, vendors, etc.

  • Hi,

     

    Thanks for the replies - sry for my slow response I was away for the weekend.

    Yes this is the sort of thing I'm after, the IP's I want covered by the groups are actually:-

    10.3.1.0-10.7.7.255 = central infrastructure

    10.8.1.0 - 10.30.13.255 = stores

    It doesn't really matter if there is an overlap over or before these ranges as that is unused space anyway.

    So I would want two groups I guess then depending on IP address when it's autodiscovered it would automatically go into the right group.

    I hope I've done that right - it's a bit early!

    To be honest the subnets I need seem to be a bit irrelevant at this stage as from your replies it doesn't sound like it can be done, if it gets added as a feature I can have a play with it until I find the best match.

    I think I need to do some research into regex, looks handy!

    Cheers,

    worto.

  • I don't know if you already got it, but to get it working right now, I would do "starts with" "10.8.","10.9.","10.1", 10.2", and "10.30." for stores and "10.4.", "10.5.", "10.6." and "10.7." for the central till something else works out.

    (You would get 10.100-255.x.x too, but you said that would work.)

    (oh for regex, here is a reference guide that helps me or this.)

    (My first post finally shows up!  that was weird, it took that a while)

  • Thanks for all the help in this thread - I'll give that a try, seems to make sense, thanks for the links too!

    Cheers,

    worto.