Need filter Relevance by Computer Name

Hi All.

I’m trying to filter the relevance by computer name but it doesn’t work.
This is my relevance:

((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor")

I tried to Add:

AND bes computers whose (name of it as string starts with "101p1-")
AND (name of BES Computer as string starts with "101p1-")
AND (computer name contained "101p1-") 
AND (it as lowercase contains “101p1-” or it as lowercase contains “101p1-”) of value of variable “COMPUTERNAME” of environment

Any of this Works, also I tried start with "101p1-), I try to use regex with no success.

Can you help me?

Thanks in advance

Assuming this is Client Relevance (i.e. a Fixlet/task/analysis/computer group, not a Web Report / Dashboard/ API), try

computer name as lowercase contains "101p1-"
2 Likes

Hi @JasonWalker

I tested it but it doesn’t work:

((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND (computer name as lowercase contains "101p1-")

More suggestions please.

Thanks in advance.

What’s the context for this? Where are you using the relevance?

(not really adding anything productive but it seems like you’re trying to target all windows server version and it would be easier to do just like name of it starts with "Win20" of operating system rather than three lines of every version explicitly from the last 15 years imo)

2 Likes

Hi.

@JasonWalker, I just have access to GUI, I’m editing the task, in Relevance tab.
@Sophia , no, I filtered by OS (It is working well), if a Service installed (working well) and now I need to filter by Computer Name that start with “101p1-”.

((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND ((name of it starts with "101p1-") of Computer name)

This does’nt work either.

Still working on it.

Regards.

((name of it starts with "101p1-") of Computer name)

Computer Name is a property, and you appear to want values that start “101p1-”, but what you are looking for is a property called “Computer Name” whose name of it starts “101p1-”

just change it to

computer name starts with "101p1-"

2 Likes

Hi @trn

Many, Many thanks I add it and it works as spected.
The final Relevance filter looks like this:

((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND (computer name starts with "101p1-")

Thanks in Advance.

If you’re looking for all server OS, why not simplify the relevance to

(name of it contains “Win2”) of operating system AND (not exists service “TSM Client Acceptor”) AND (computer name starts with “101p1-”)

1 Like

lol that’s what I said… I just like efficiency

2 Likes