Example of XML file
The following extract is an example of an XML file containing CMDB elements to import.
First elements described in the file are CMDBs, which contain configuration item types and configuration items.
For each of these elements, you must define the name, potentially a description (comment), but most of all its CMDB identifier.
<ci id="a" cmdbid="a1" name="my server 1" typeid="a123" status="active" delete="yes">
Configuration item type
Configuration item types are associated to a CMDB.
If certain properties do not exist in MEGA, you can define them in the XML file so that MEGA can create them and link them to the appropriate items.
Example of CMDB properties of a configuration item of "Server" type
Result in MEGA:
Configuration item
List of configuration items contained in a CMDB is described in the <Data> tag.
Each configuration item refers to a type which has been defined previously in the same CMDB.
<ci id="a" cmdbid="a1" name="my server 1" typeid="a123" status="active" delete="yes">
On a configuration item, you can specify values of properties defined on the type it refers to.
Configuration item composition
A configuration item can contain other configuration items. The link between an item and its sub-item is represented by a Configuration Item Composition.
</configurationItems>
<compositions>
<composition id="ab" cmdbid="ab" ownerid="a" usedid="b" />
<composition id="ba" cmdbid="cd" ownerid="b" usedid="a" />
</compositions>