Add relevance data

New to this. Existing statement for an automatic group. Need to add 2 hostnames to this statement. Can anyone tell me how to do it?

(version of client >= "6.0.0.0") AND ((exists true whose (if true then (member of group 2382 of site "actionsite") else false)) AND (exists true whose (if true then (not exists (if exists value of settings "_BESClient_ActiveDirectoryPathOverride" of client then value of setting "_BESClient_ActiveDirectoryPathOverride" of client else if exists true whose (if true then exists distinguished name of local computer of active directory else false) then distinguished name of local computer of active directory else "<none>") whose (it as string as lowercase contains "xwca" as lowercase)) else false)) AND (exists true whose (if true then (not exists (if exists value of settings "_BESClient_ActiveDirectoryPathOverride" of client then value of setting "_BESClient_ActiveDirectoryPathOverride" of client else if exists true whose (if true then exists distinguished name of local computer of active directory else false) then distinguished name of local computer of active directory else "<none>") whose (it as string as lowercase contains "dc=armups,dc=icm" as lowercase)) else false)))

This looks like relevance that has been generated via the Console UI:

image

If so, it might be easiest to add the additional conditions that way. Alternatively, something like the following might be leveraged to add 2 hostnames for inclusion (note the addition of the OR clause checking the computer names at the end of the relevance statement):

(version of client >= "6.0.0.0") AND ((exists true whose (if true then (member of group 2382 of site "actionsite") else false)) AND (exists true whose (if true then (not exists (if exists value of settings "_BESClient_ActiveDirectoryPathOverride" of client then value of setting "_BESClient_ActiveDirectoryPathOverride" of client else if exists true whose (if true then exists distinguished name of local computer of active directory else false) then distinguished name of local computer of active directory else "") whose (it as string as lowercase contains "xwca" as lowercase)) else false)) AND (exists true whose (if true then (not exists (if exists value of settings "_BESClient_ActiveDirectoryPathOverride" of client then value of setting "_BESClient_ActiveDirectoryPathOverride" of client else if exists true whose (if true then exists distinguished name of local computer of active directory else false) then distinguished name of local computer of active directory else "") whose (it as string as lowercase contains "dc=armups,dc=icm" as lowercase)) else false))) OR (computer name as lowercase = "foo" as lowercase OR computer name as lowercase = "bar" as lowercase)
1 Like