Automatic Groups - Multiple Subnets

(imported topic written by RobertDiRosato)

Hello,

Say I want to create an automatic group for my Asia offices.

If I create this:

ALL

Subnet

Contains

10.2

Subnet

Contains

10.11

Subnet

Contains

172.88

Domain

Equals

Asia.domain.local

OS

Does Not Contain

MAC

The above will return (0) results.

If I switch it to

ANY

it will return everything not

MAC

.

How can I create the above with only 1

Subnet

entry?

Like Subnet

Contains

10.2 or 10.11 or 172.88

here is the relevance for one Subnet entry how can I add other subnets using just 1 statement?

exists (subnet addresses whose (it as string != “0.0.0.0”) of ip interfaces whose (not loopback of it) of network) whose (it as string as lowercase contains “10.4” as lowercase)

Noah thanks in advance for your help :wink:

(imported comment written by mcalvi91)

What we did was create regions and sub groups.

For example, our location by subnet property is as follows (using your networks).

10.2.0.0/16 - Asia-JP

10.11.0.0/16 - Asia-CN

172.88.0.0/16 - Asia-KR

Then we made groups which were as follows

Location By Subnet contains “Asia-”

That way we can have several systems across multiple subnets with the boolean AND modifier.

Alternatively you can make another group which is all ORs (group name Asia-Networks)

ANY

Subnet Contains 10.2

Subnet Contains 10.11

Subnet Contains 172.88

Then in the larger group, you can include the subnet group.

ALL

Is Member of “Asia-Networks”

Domain Equals Asia.domain.local

OS Does Not Contain MAC

Hope that helps

Mike

(imported comment written by RobertDiRosato)

Nice… I didn’t think to do it that way…

I’ll check it out…

Really wanted to do it via relevance…

If I ever get the code I will post it here…

Thanks again