Important This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

About 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.

Note

This format supports importing the auxiliary interface data.

  1. These attributes are for the primary interface.
  2. 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

The XML tags must use the letter case shown in the previous table (for example, name, externalId).

<?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>

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*