I would like to create automatic server group in BF Console, which will contain just computers with specific “comment” (comment for any computer can be add via right click on computer in BES console and choose “Add Comment”). I think that such membership can be done only via relevance, which will be defined as a property of such automatic group:
I would like to ask about right syntax for such a relevance.
You won’t be able to do that with the ‘comment’ field directly. The group relevance is evaluated at the client, and the client doesn’t know about any comments you added in the console.
The most direct way would be to create a Client Setting, a task to set the value of the Client Setting, and Group Relevance based on the value of that setting.
What I mean is a “client setting”. On Windows it gets stored in the Registry; on Linux in a configuration file; but using the ‘client setting’ architecture it’s cross-plaform.
Task: Configure Client Setting for “Comment”
Action:
action parameter query "comment" with description "enter a comment" and with default value "your comment goes here"
setting "MyCommentSetting"="{parameter "comment"}" on "{parameter "action issue date" of action}" for client
Take the Action, and enter for example “Group1” as the comment value.
Group Relevance for Group1:
exists setting "MyCommentSetting" whose (value of it = "Group1") of client