(imported comment written by SystemAdmin)
Lee Wei
- In the Content combo box, select the last item “Custom Relevance Expression”. This allows you to write a query to pull any number of Fixlets.
The query we want can start by identifying the Baseline, then filter out the admin tasks. Here is an example.
source fixlets whose ( name of it does not contain
"Project" ) of components of component groups of bes fixlets whose ( baseline flag of it =
true and name of it contains
"December 2009" )
In this case, “December 2009” identifies your original Baseline. “Project” is the word found in the admin tasks.
Lee Wei
Lee,
I have been trying to incorporate the same logic within the report itself as we have a task that updates a global property we have called “Last Patch Date” in each of our patching baselines, so right now it shows “not compliant” where the task by itself should not be considered for the overall compliance against the baseline. The weird thing is that when I use “Custom Relevance Expression” and put the code in it works without an issue. When I put the code in fixlet_compliance.js it does not (see the portion of the file that I am modifying for it below - Type B). Is there something that I am missing? Thank you in advance.
if (type ==
'B')
{ fixletFilter =
'(source fixlets whose (name of it does not contain "MGTI - PROD - ALL - Update Last Patch Date") of components of component groups of bes fixlets whose (baseline flag of it = true and name of it = "' + contentName +
'"))';
}
else
if (type ==
'S')
{ fixletFilter =
'(fixlets whose (fixlet flag of it = true) of bes sites whose (display name of it = "' + contentName +
'"))';
}
else
if (type ==
'C')
{ fixletFilter =
'(bes fixlets whose (display name of site of it = "Patches for Windows (English)" and source severity of it as lowercase = "critical" and name of it as lowercase does not contain "corrupt patch" and name of it as lowercase does not contain "superseded"))';
}
else
if (type ==
'R')
{ fixletFilter = textAreaFixlet.getValue();
}
else
if (type ==
'A')
{ fixletFilter =
'(bes fixlets whose (fixlet flag of it = true and display name of site of it = "Patches for Windows (English)" and name of it as lowercase does not contain "corrupt patch" and name of it as lowercase does not contain "superseded" and source release date of it >= date "' + patchTuesdayCurrent +
'" and source release date of it <= date "' + patchTuesdayCurrentEnd +
'"))';
}
else
if (type ==
'D')
{ fixletFilter =
'(bes fixlets whose (fixlet flag of it = true and display name of site of it = "Patches for Windows (English)" and name of it as lowercase does not contain "corrupt patch" and name of it as lowercase does not contain "superseded" and source release date of it >= date "' + patchTuesdayPrevious +
'" and source release date of it <= date "' + patchTuesdayPreviousEnd +
'"))';
}
else
if (type ==
'E')
{ fixletFilter =
'(bes fixlets whose (fixlet flag of it = true and display name of site of it = "Patches for Windows (English)" and name of it as lowercase does not contain "corrupt patch" and name of it as lowercase does not contain "superseded" and source release date of it >= date "' + patchTuesdayPrevious2 +
'" and source release date of it <= date "' + patchTuesdayPrevious2End +
'"))';
}