I’m having a problem figuring out a specific device group I’m trying to create.
I have 3 device groups which have a subset of servers in them.
Core Critical Servers
Dev and Lab Servers
ITD Only Servers
I want to create a dynamic group that includes all servers, but excludes servers that are in any of the other 3 groups.
Do not work:
devices.type = “Server” AND (device_groups.name != “Core Critical Servers”) AND (device_groups.name != “Dev and Lab Servers”) AND (device_groups.name != “ITD Only Servers”)
devices.type = “Server” AND device_groups.name != “Core Critical Servers” AND device_groups.name != “ITD Only Servers” AND device_groups.name != “Dev and Lab Servers”
I don’t see device_group_device as an option, do you mean device_groups.id? If so, how do I know what group ID the groups are - I don’t see a group ID column in my Manage Groups list.
How do I know what ID the groups are, to use them in this query? I don’t see that information in Manage Groups.
EDIT: I was able to suss it out by creating a dynamic test group and iterating the group ID until I mapped them all out - not ideal but I got it.
However, using device_groups.id resulted in the same output. I don’t think there was an issue using device_groups.name, as creating a new group referencing that field would work. The issue must be with my query.