Is there a way to do a "or" with contains?

(imported topic written by SystemAdmin)

I am still pretty new to BigFix Relevance, so please forgive me if this something trivial, but I have been having trouble finding documentation that covers this. Let me outline the scenario first. We have ~200 sites across the continental US. Many of these machines were deployed with EST as their timezone, but when they arrived at their site, rather than changing the timezone, various people just changed the time. The end result is a bunch of system clocks that are up to three hours out of sync. We realize it is pretty easy to just sync to the time on the BESROOT, but the end users will think their time is wrong because of the timezone.

My thought was to make four automatic groups-- one for each timezone. We already have a location by subnet property setup that maps 700+ subnets to each location number. I wanted to setup the relevance for the automatic groups to look for the location number. For one site it would look like this:

value of settings "Location" of client as lowercase contains "001"

What I can’t figure out how to do is look for more than one string in the result. What I want to type is "contains “001” or “002”, but I get a “singular boolean” error. I know I could get around this just using the automatic group creation wizard and adding a bunch of “Location” property contains lines, but that starts to look real ugly fast and I would have to imagine it could slow clients down.

Any ideas? Thanks!

(imported comment written by Lee Wei)

Brian,

You can use this construct.

(it contains "001" or it contains "002") of (value of settings "Location" of client as lowercase)

(imported comment written by SystemAdmin)

That does work and it is a lot prettier than what I had before. Is there another way to avoid having to use “or it contains” every time though? Could I feed it a list of the numbers and have it run through them? Thanks.

(imported comment written by Lee Wei)

Hi Brian,

No, this is the language construct - no other easier form for the OR and AND clauses. :slight_smile:

Lee Wei

(imported comment written by cj6591)

If they are unique values then you can just reverse the order of the parameters and make them space seperated …

whose (

( "

001

002

003

004

" as lowercase contains it as string as lowercase )

The limitation here is that BF will complain if the initial string is too long, in which case you then have to use an OR again and place the additional strings in a second (or third or fourth) statement.