Mapping for the XML import format
This topic contains information about the XML import format for TrueSight Network Automation.
XML import format
The import task maps the XML formatted file as shown in the following table.
- These attributes are for the primary interface.
- These attributes are for the auxiliary interface.
XML formatting guidelines
Follow these guidelines while formatting an XML file:
- The XML file must begin and end with the <import> and </import> tags.
- Each device must begin and end with the <device> and </device> tags.
- Dynamic fields must begin and end with the <dynamicFields> and </dynamicFields> tags.
- Groups must begin and end with the <groups> and </groups> tags.
Example XML formatted file
<?xml version="1.0" encoding="UTF-8"?>
<import xmlns:xsi="http://www.w3.org/2001/XML.Schema=instance">
<device>
<name>cisco1760-01</name>
<address>cisco1760-01</address>
<realm>Speedy Print Services</realm>
<deviceType>BE2B2D21-1CAA-53C3-05C3-CBB0A5D151B8</deviceType>
<snmpOid>1.3.6.1.4.1.9.1.416</snmpOid>
<category>1</category>
<agent>Local</agent>
<agentNIC>default</agentNIC>
<accessMode>ssh2</accessMode>
<transferMode>scp</transferMode>
<dynamicFields>
<dynamicField name="Description">This is the description</dynamicField>
<dynamicField name="Location">ATL</dynamicField>
</dynamicFields>
<groups>
<group>Device Location</group>
<group>Contract PO Number</group>
</groups>
</device>
</import>
<import xmlns:xsi="http://www.w3.org/2001/XML.Schema=instance">
<device>
<name>cisco1760-01</name>
<address>cisco1760-01</address>
<realm>Speedy Print Services</realm>
<deviceType>BE2B2D21-1CAA-53C3-05C3-CBB0A5D151B8</deviceType>
<snmpOid>1.3.6.1.4.1.9.1.416</snmpOid>
<category>1</category>
<agent>Local</agent>
<agentNIC>default</agentNIC>
<accessMode>ssh2</accessMode>
<transferMode>scp</transferMode>
<dynamicFields>
<dynamicField name="Description">This is the description</dynamicField>
<dynamicField name="Location">ATL</dynamicField>
</dynamicFields>
<groups>
<group>Device Location</group>
<group>Contract PO Number</group>
</groups>
</device>
</import>
Device category IDs for CategoryMap
The following table lists the device category IDs for the CategoryMap.xml file.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*