The type mapping maps the third-party CI type definitions to their CMDB types in the RTSM.
Maps the CI to the specified CMDB type that is the concatenated string of the results of the operators. There must not be more than one <CMDBType>
element in the <MapTo>
section.
<CMDBType> [Operand] ... </CMDBType>
In the following example, all CIs that have an OM Type Exch2k7_ByServer
and that have the context exchange
assigned are mapped to the CMDB Type exchangeserver
.
Example:
<?xml version="1.0" encoding="utf-8"?> <Mapping>
<Rules context="exchange"> </Rule> <Rule name="Map Exchange Server"> <Condition> <Equals> <OMType/> <Value>Exch2k7_ByServer</Value> </Equals> </Condition> <MapTo> <CMDBType> <Value>exchangeserver</Value> </CMDBType> </MapTo> </Rule> </Rules> </Mapping>
In the following example, all nodes that have an attribute OSType
that starts with the string Windows
are mapped to the CMDB type nt
.
Example:
<Mapping> <Rules> <Rule name="Map Windows Host Type"> <Condition> <And> <IsNode/> <StartsWith> <OMAttribute>OSType</OMAttribute> <Value>Windows</Value> </StartsWith> </And> </Condition> <MapTo> <CMDBType> <Value>nt</Value> </CMDBType> </MapTo> </Rule> </Rules> </Mapping>