(imported topic written by SystemAdmin)
I’m trying to create a custom report that we can send out via email. It’s an analyst type report so it would just list computer system along with identifying properties like ip, mac, custom prop1 etc along with fixlets belonging to a specific baseline.
example output
pc name1, pc ip1, pc mac1, pc custprop1, fixlet1, fixlet prop1
pc name1, pc ip1, pc mac1, pc custprop1, fixlet2, fixlet prop2
pc name2, pc ip2, pc mac2, pc custprop2, fixlet1, fixlet prop1
I have tried this relevance:
=======================================================================
trs of
(
td of (if exists name of item 1 of it then name of item 1 of it else “no name”) of it &
td of value of result (bes property “Mac Address”, item 1 of it) &
td of value of result (bes property “Location By IP Range”, item 1 of it) &
td of (if exists name of item 0 of it then name of item 0 of it else “no name”) of it &
td of (if exists source of item 0 of it then source of item 0 of it else “no source”) of it &
td of (if exists source id of item 0 of it then source id of item 0 of it else “no source id”) of it &
td of value of result (bes property “cust prop1”, item 1 of it) &
td of (if exists source release date of item 0 of it then source release date of item 0 of it as string else “no source release date”) of it &
td of (if exists category of item 0 of it then category of item 0 of it else “no category”) of it
)
of
(
relevant fixlets whose (name of it does not contain “some filter”)
of components of component groups
of bes fixlets
whose
(
baseline flag of it = true and
name of it contains “Cust Baseline 1”
), it
)
of bes computers whose
(exists result (bes property “computer name”, it) whose (value of it as string as lowercase starts with “PC name filter” as lowercase))
===============================================================
I have seen code in different posts where you use:
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”
= )
=====================================
http://forum.bigfix.com/viewtopic.php?id=4307&p=1
Is there a (reason / way) you (can / can’t) use this code:
======================================
=
= of components of component groups of bes fixlets
= whose
= (
= baseline flag of it = true
= and name of it contains “December 2009”
= )
======================================
with ‘source fixlets’ but not ‘relevant fixlets’?
Is there another way of doing this? I’d like to keep a way of filtering fixlet or system ‘names’ or other properties in the relevance if possible.
???