Customizing MapVendor.xml
The MapVendor.xml file is used by Auto-Discovery to map a unique string obtained from the CLI to that vendor name of that device.
Before you begin
About this task
This task assumes that you are familiar with the XML tags described in the following table:
XML tag | Description |
---|---|
|
The file contains |
Procedure
- Open the file for editing.
- Edit the XML tags according to your needs. Use the Example section as a guide.
- When you are satisfied with your edits, save and exit the file.
Example
Consider the following XML tags in a sample file:
<vendorlist>
<vendor name="CISCO"> 1
<output>Cisco</output> 2
</vendor>
</vendorlist>
Now consider the following return from the Auto-Discovery tool when it uses a RegexList.xml file to parse the CISCO CLI:
vendor=CISCO 1
model=2651 2
os=12.4(5A)
The Auto-Discovery tool:
- Compares the value
CISCO
returned tovendor
with the value specified in thename
attribute of the<vendor>
tag. The values match. - Returns the value specified in the
<output>
tag, if the values invendor
and<vendor>
match. In this example, returns the device vendor as Cisco.
Consider the following XML tags for Juniper in a sample file:
<vendor name="JUNOS"> 1
<output>Juniper</output> 2
</vendor>
</vendorlist>
Now consider the following return from the Auto-Discovery tool when it uses a RegexList.xml file to parse the Juniper CLI:
vendor=JUNOS 1
model=M5 2
os=6.2R2.4
The Auto-Discovery tool:
- Compares the value
JUNOS
returned tovendor
with the value specified in thename
attribute of the<vendor>
tag. The values match. - Returns the value specified in the
<output>
tag, if the values invendor
and<vendor>
match. In this example, returns the device vendor as Juniper.
What to do next
You can now configure the MapModel.xml file.
For instructions on how to configure the MapModel.xml file, see Customizing MapModel.xml.
To study a complete working example of a file, see MapVendor.xml example.