Can applicable machines for a baseline be filtered?

(imported topic written by SystemAdmin)

Hi,

I created the following in the presentation debugger:

<?relevance (name of bes fixlet whose (id of it = 17028) as string) & " | unpatched machines | " & (applicable computer count of bes fixlet whose (id of it = 17028) as string)?>

The output is as follows:

Evo:PM:

:

:*:Patches:November:2008 (Desktop\Laptop) | unpatched machines | 24

The code returns all devices applicable for the baseline, but is there any way to filter to show only applicable machines where the operating system =“WinXP” ?

Thanks

(imported comment written by Lee Wei)

Looks like you are very close.

Firstly, this is an alternative to your original statement:

(name of it & " | unpatched machines | " & applicable computer count of it as string ) of bes fixlets whose (id of it = 17028)

To add the condition for operating system, I have the following:

(name of it & " | unpatched machines | " & number of applicable computers whose (operating system of it contains “WinXP”) of it as string) of bes fixlets whose (id of it = 17028)

Lee Wei

(imported comment written by SystemAdmin)

Hi Lee Wei,

When I run the following in the presentation debugger:

<?relevance (name of it & " | unpatched machines | " & number of applicable computers whose (operating system of it contains "WinXP") of it as string) of bes fixlets whose (id of it = 17028) ?>

I get the following - The operator “operating system” is not defined.

Thanks

Rob

(imported comment written by Lee Wei)

Hi Rob,

Maybe some sanity checks:

  • What version of BES are you using. I am using 7.x, and cannot see this to be the problem…
  • You don’t need the <?relevanve ?> tag in the Presentation Debugger from the BES Console. The tag is meant for Web Reports.
  • Does the following statement return a result? The expected result is “operating system of : string”

properties whose (it as string contains “operating system”)

  • Does this statement return a result?

number of operating system of applicable computers of bes fixlets

Lee Wei

(imported comment written by SystemAdmin)

Hi Lee Wen,

We are using BES 6.x.

The reason I am using the <?relevance ?> tags is so that I can create this as a report that can be e-mailed on a regular scheduled basis from webreports.

When I run the following

number of operating system of applicable computers of bes fixlets

I get “The operator “operating system” is not defined.”

Thanks

Rob

(imported comment written by Lee Wei)

Looks like the version 6.0, operating system is not a predefined property of the BES Computer object.

You can try the following instead:

(name of it & " | unpatched machines | " & (number of values whose (it contains “WinXP”) of property results whose (name of property of it = “OS”) of applicable computers of it) as string) of bes fixlets whose (id of it = 17028)

Note that you need to verify that you have a Retrieved Property with the name “OS”. This construct will also allow you to filter on any properties return by the clients.

(imported comment written by SystemAdmin)

Works Great!

Thanks for all your help