Is there a way to perform a wildcard (*) search from the Search bar inside BES Console under Computers view? I only know that it will find all the matching letters inside the Search bar but it does not do wildcard search.
For example, I have a list of computers with this naming convention as shown below.
Examples:
S0000A01YX
S3848M31YX
S8300G01ZX
Hoping i could use a wildcard search in the Search bar or relevance statement to do “S*X”
is the wildcard.
My main goal is to create an automatic computer group to group any servers with such naming convention (S*X) as shown above examples.
What would be my relevance statement to accomplish such search?
exists computer name whose (it as string as uppercase starts with “S” AND it as string as uppercase ends with “PX” OR it as string as uppercase ends with “PX-H” OR it as string as uppercase ends with “DX”)
It seems to work well but it picks up other computer names which I don’t it should. See below.
exists computer name whose (it as string as uppercase starts with “S” AND it as string as uppercase ends with “PX” OR it as string as uppercase ends with “PX-H”) OR ( it as string as uppercase ends with “DX”)
Now, these hub* servers are gone which is a good new.
There’s a difference between a wildcard search in the search bar, and wildcards in client relevance to build an automatic group. The relevance might be a good case for Regular Expressions (which is a handy skill to have in any case, useful in lots of programming languages).
For your first set of hosts, you could use relevance
computer name as uppercase = regex “(^S.*X$)”
That is, the computer name starts with S ( ^S ) has an unlimited number of other characters ( .* ) ends with X ( X$ )
If you want to match multiple different strings, you can separate them with pipe symbols. I can’t test this now, but I think your second post should match something like
computer name as uppercase= regex “(^S.*X$)|(^S.*PX$)|(^S.*PX-H$)|(^S.*DX$)”
which might simplify to
computer name as lowercase = regex"(^S.*(X|PX|PX\-H|DX))$"
for “Starts with S, has some other characters, and ends with either X or PX or PX-H or DX”
Hi Jason, one challenge question for you. Can I use DNS Name column information in my relevance statement to perform a wildcard search base on the following condition: