Components of a baseline

(imported topic written by Harald.Zarakowitis)

Hi,

I want to make a custom report and like to get the components of a baseline. I use this relevance.

(components xml of bes fixlets whose (name of it starts with 
"Name of Baseline"))

This however is a xml document. I´d like to get the fixlets of the baseline in a list form.

I tried :

xml document of (components xml of bes fixlets whose (name of it starts with 
"Name of Baseline"))

but I receive: The operator “string” is not defined.

How can I solve this?

Best regards,

Harald

(imported comment written by jessewk)

Hi Harald,

You can try this to get the component names of all your baselines. If you add a whose clause or an ’ AND name of it starts with “foo” ’ you can restrict it to specific baselines:

node values of attributes “Name” of xpaths “/BaselineComponentCollection/BaselineComponentGroup/BaselineComponent” of xml documents of components xmls of bes fixlets whose (baseline flag of it)

(imported comment written by SystemAdmin)

Hey Harald,

Very clever idea using the fixlet XML to find the components of a baseline. In 7.0 we have inspectors to look at baseline component fixlets, but i had not thought of a way to do it in 6.0 until you brought this up.

the “XML document” takes an xml looking string and converts it to a xml dom object, which is cannot be displayed as a string. After we have the xml dom object, we can manipulate it a little bit and get what you want.

(node value of attribute 
"Name" of it  )of child nodes of child nodes  of child nodes of xml document of (components xmls of bes fixlets whose (name of it starts with 
"Tim's Baseline"))

-zak

(imported comment written by Harald.Zarakowitis)

Hi,

thank you for your replies.

Jesse´s version worked for me.

When I run Zak´s code the system replies with:“Singular expression refers to non-unique object”

Edit: Aparrently I made a mistake. Zak´s code also works.

Thanks again,

Harald

(imported comment written by jessewk)

In BES 7.0 there are some new inspectors for baselines that make it easier. In 7.0, this will do the same as the query I posted above:

names of components of component groups of bes fixlets whose (baseline flag of it)

Here’s a listing of the new baseline inspectors:

component groups of : bes baseline component group
name of : string
components of : bes baseline component
id of : integer
name of : string
source fixlet of : bes fixlet
include in relevance flag of : boolean
relevance of : string
action of : bes fixlet action
applicable computer set of : bes computer set
applicable computer count of : integer
unknown computer set of : bes computer set
unknown computer count of : integer
baseline flag of : boolean