BES XML document
An easy way to learn about BES XML documents is to create one instance of that type of content on the BigFix console and then export it as follows:
- To export a Fixlet, task, baseline, action, analysis or computer group, right-click one from the console list panel and select Export from the pop-up menu.
- To export retrieved properties, open Tools -> Manage Properties, select a property, and click Export.
- Select a folder for the exported .bes file.
- Open the saved .bes file in an XML editor or plain-text editor.
Generally speaking, a BES XML file contains a
BES document element, with at least one Fixlet, task,
baseline, analysis, SingleAction, MultipleActionGroup, ComputerGroup, or property element. This is the list of all the
possible elements that you can include in your BES XML file:
<?xml version="1.0" encoding="UTF-8"?> <BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd"> <Fixlet> ... </Fixlet> <Task> ... </Task> <Baseline> ... </Baseline> <Analysis> ... </Analysis> <SingleAction> ... </SingleAction> <MultipleActionGroup> ... </MultipleActionGroup> <ComputerGroup> ... </ComputerGroup> <Property> ... </Property> </BES>
The format and the fields to specify for each element in the BES XML file is described in the BES Schema file BES.xsd. This file is located in the Program Files\BigFix Enterprise\BES Console\Reference folder on your console computer.
Specifically, the BES.xsd file contains the definitions for all the content that you can submit to the Server API. Any content that you create must validate against this schema or it is rejected during the import.
You can also use this schema file when you create your scripts, because many XML authoring tools include the schema to make XML authoring easier.
The content that you create for the Server API is in XML format and is saved in files with extension .bes.
Note: In XML, the
” characters must be escaped as
" respectively. Because many elements can contain
HTML, it can be easier to wrap the element’s unescaped contents in a CDATA tag,
<![CDATA[...]]>. CDATA tags cannot be nested, so this technique does not
work if the data already contains the CDATA end tag