(imported topic written by Shawn_Jefferson)
Is there a way to query the computer group (the BES automatic computer group) in revelance language?
Somthing like:
(computer group contains “CDN Server”) OR (computer group contains “US Servers”)
??
(imported topic written by Shawn_Jefferson)
Is there a way to query the computer group (the BES automatic computer group) in revelance language?
Somthing like:
(computer group contains “CDN Server”) OR (computer group contains “US Servers”)
??
(imported comment written by SystemAdmin)
Here is the relevance that we usually use to create a property that returns the manual computer groups:
if exists ((settings of client) whose (it as string contains “_Group_0” and it as string contains “True”)) then (following texts of substrings “_Group_0” of preceding texts of substrings “=True” of (((settings of client) whose (it as string contains “__Group” and it as string contains “True”)) as string)) else “<N/A>”
Automatic groups create a custom relevance expression for each group that the client uses to decide if they are a member of the group so it would be harder to reference these, you would need to use the relevance expression for that automatic group.
You can create automatic groups that include subsets of other groups. In the create new automatic computer group dialog, select in the first drop down box “Group Membership” at the top of the drop down list.
I am not sure I helped you with your question here. What are you trying to do exactly?
(imported comment written by Shawn_Jefferson)
What I would like to do is target specific computers in my custom task.
Like:
(not exists file “c:\bogus.txt”) AND (computer group contains “CDN Servers”)
right now I am doing:
(not exists file “c:\bogus.txt”) AND ((computer name contains “CDN”) AND (computer name does not contain “XXX”) AND (computer name does not contain “YYY”)
etc. I realize that I can select the computer for the task by property and select the group that way, but it’s nice to be able to see at a glance in the BES Console, whether any computer are revelant for that task without having to drill down into the tasks.
It sounds like you cannot do what I want in the current versions of BES.
(imported comment written by BenKus)
Hey Shawn,
With things like computer properties, computer groups, Fixlet status, etc., we tend to copy the relevance and not build “reference” inspectors because of potential issues it might cause. For instance, if someone built Group A with relevance “not member of group b” and Group B with relevance “not member of group a”, it would cause the groups to flip back and forth. You can imagine some more complicated and problematic scenarios. Similarly, if you use reference based inspectors, you introduce a delay in when the systems are switched in and out of the groups and when the relevance notices the change. There is another issue about what to do when the relevance for the group/property changes “from underneath” you, which causes a whole host of change control and security questions.
These details are very technical and specific and the BES Console tends to do most of the work for you (it will automatically copy the relevance into the action when you target by property or group).
Having said all that, I think it would be a good thing to have inspectors like the ones you are asking for because the ease of use for the advanced Fixlet authors might outweigh the smallish chance that they are misused. We will see what we can do in the future, but for now, hopefully copying the relevance from the group is not terribly annoying.
Ben
(imported comment written by Shawn_Jefferson)
I’m not talking about building groups, I am talking about querying a computer’s group in a task, but I see what you are saying.
I think an inspector that could get the computer group would be a nice feature to have, and I don’t think that the issue with the “lag” between what’s been reported and a change is really an issue, since you’d have that issue with almost every property wouldn’t you?
(imported comment written by choro)
Hey Shawn… try this…
Create a test Automatic Group and set it to include computers that are part of another group…From the drop-down list box choose Group Membership … Is member of … then choose the group you want to filter (example: CitrixServers … automatic group)…then click OK…
This will populate the Automatic Computer group with members of the CitrixServers group.
In the Description tab for the test auto-group look at the relevance…there you’ll find the code that will referece the group you want to filter…should look something like this…
(version of client >= “6.0.0.0”) and (false or exists true whose (if true then (member of group 4165 of site “actionsite”) else false))
member of group 4165 of site “actionsite” <— this is the code you want…you can then use this in your relevance for that group.
Keep in mind that the 4165, in this case, refernces the CitrixServers automatic group … this is what you are trying to get when you do this…the 4165 reference to CitrixServers won’t change unless i delete the group and add it back.
(imported comment written by Shawn_Jefferson)
choro
Hey Shawn… try this…
Cool, that is what I was looking for.
(imported comment written by Edj)
choro
Thank you for the tip. This is also exactly what I was looking for.
Ed