Baseline duplicate component report

(imported topic written by cstoneba)

I have the code below that I put into the BigFix Session Relevance Tester when I want to see if one of my baselines contains duplicate components. I’d like to put this into a web report, but remove the need to manually type in the baseline name, and instead, just select the baseline from a pulldown. How would I do that?

(it, multiplicity of it) of unique values whose (multiplicity of it > 1) of names of components of component groups of bes fixlets whose (baseline flag of it and name of it = “BASELINE_NAME”)

1 Like

(imported comment written by MattBoyd)

If you wanted to create a pulldown, you would probably need to get into some javascript and use the EvaluateRelevance() function to return the results of this query and then populate the pulldown with the results

(name of it, id of it as string) of bes fixlets whose (baseline flag of it)

What if you just returned the duplicate components from all baselines? Something like this should work:

(item 1 of it, item 0 of it, multiplicity of item 0 of it) of (unique values whose (multiplicity of it > 1) of item 0 of it, item 1 of it) of (names of components of component groups of it, names of it) of bes fixlets whose (baseline flag of it)

The results returned include baseline name, component name, and multiplicity

Edit: With the relevance above, you should be able to filter out baselines by using the filters built into web reports.

(imported comment written by cstoneba)

your second suggestion doesn’t seem to be working. I am not getting any results. When I run my original BSRT code, I see my duplicates, and BSRT connects to Web Reports, so I know the data is there and it’s not that the cache just hasn’t updated yet.

(imported comment written by MattBoyd)

Well gee, I thought I wasn’t getting any results because none of our baselines had duplicates! How naive…

This worked for me:

(item 1 of it, item 0 of it, multiplicity of item 0 of it) of (unique values whose (multiplicity of it > 1) of names of components of component groups of it, names of it) of bes fixlets whose (baseline flag of it)

(imported comment written by cstoneba)

yep, that worked for me too. thanks