RegexList.xml example
The RegexList.xml example contains the Regex for determining device VTMOS for these vendors: CISCO, Alcatel, and Motorola.
Purpose
This example shows how to populate the XML tags associated with specifying Regex for determining device VTMOS.
Sample
Study the following example to learn how to populate the XML tags associated with specifying Regex for determining device VTMOS.
<regexlist>
<!-- device vendor-->
<device>LE-[0-9]*</device>
<!-- WWP -->
<device>[Cc][Ii][Ss][Cc][Oo]</device>
<device>[Aa][Ll][Cc][Aa][Tt][Ee][Ll]</device>
<device>[Jj][Uu][Nn][Ii][Pp][Ee][Rr]</device>
<device>[Jj][Uu][Nn][Oo][Ss]</device>
<device>[Mm][Oo][Tt][Oo][Rr][Oo][Ll][Aa]</device>
<device>[Ee][Xx][Tt][Rr][Ee][Mm][Ee]</device>
<!-- CISCO DEVICE MODEL & OS -->
<vendor name="Cisco">
<model>
<regex>
<value>(?<=[Cc][Ii][Ss][Cc][Oo][\s])(((\d){3,5}))(?=.*[\S]|
processor|revision)|(?<=[Cc][Ii][Ss][Cc][Oo][\s]
[A-Za-z][A-Za-z])(((\d){3,5}))(?=.*processor|revision)|
(?<=[Cc][Ii][Ss][Cc][Oo][\s][A-Za-z][A-Za-z][A-Za-z]
[A-Za-z][A-Za-z])(((\d){3,5}))(?=.*processor|revision)|
(?<=[Cc][Ii][Ss][Cc][Oo][\s][A-Za-z])(((\d){3,5}))
(?=.*processor|revision)|(?<=[Cc][Ii][Ss][Cc][Oo][\s]
[A-Za-z][A-Za-z][-][A-Za-z]|Model:[\s][A-Za-z][A-Za-z]
[-][A-Za-z])(((\d){3,5}))(?=.*processor|revision|
[\s])|PIX[\s|-]Firewall</value>
<range>*</range>
</regex>
<regex>
<value>(?<=[Cc][Ii][Ss][Cc][Oo][\s])([\S]*)(?=.*processor|
revision)</value>
<range>*</range>
</regex>
</model>
<os>
<regex>
<value>(?<=SW:[\s]|Version[\s])[\d][\d|.|(|)|A-Z|a-z]*</value>
<range>*</range>
</regex>
</os>
</vendor>
<!-- ALCATEL DEVICE MODEL & OS -->
<vendor name="Alcatel">
<model>
<regex>
<value>ALCATEL.*[\d]{3,5}</value>
<range>3</range>
</regex>
</model>
<os>
<regex>
<value>[Ss]oftware[Vv]ersion.*[Aa][Ll][Cc][Aa][Tt][Ee][Ll]
<value>
<range>4</range>
</regex>
<regex>
<value>.*(?<=ALCATEL)</value>
<range>1</range>
</regex>
</os>
</vendor>
<!-- JUNIPER DEVICE MODEL & OS -->
<vendor name="Juniper">
<model>
<regex>
<value>(?<=([Mm]odel:[\s]|product-name>|description>|
host-name>))[A-Z|a-z|\d]+</value>
<range>*</range>
</regex>
<regex>
<value>Chassis.*</value>
<range>3</range>
</regex>
</model>
<os>
<regex>
<value>(?<=Software Suite \[|version>)([\d|.| |a-z|A-Z]*)
</value>
<range>*</range>
</regex>
</os>
</vendor>
<!-- WWP DEVICE MODEL & OS -->
<vendor name="Wwp">
<model>
<regex>
<value>Platform [Nn]ame.*\|.*[\\n\\f\\r\\t\|]*</value>
<range>4</range>
</regex>
<regex>
<value>[Oo][Pp][Ee][Rr].*\|.*[\\n\\f\\r\\t]*</value>
<range>3</range>
</regex>
</model>
<os>
<regex>
<value>Installed Package.*[\\n\\f\\r\\t]*</value>
<range>4</range>
</regex>
</os>
</vendor>
<!-- MOTOROLA DEVICE MODEL & OS -->
<vendor name="Motorola">
<model>
<regex>
<value>(?<=Description:[\s][A-Za-z][A-Za-z]
[A-Za-z][\s]|Chassis[\s][A-Za-z][A-Za-z]
[A-Za-z])([\d]){3,5}</value>
<range>*</range>
</regex>
</model>
<os>
<regex>
<value>SW [Vv]ersion.*[\\n\\f\\r\\t]*</value>
<range>3</range>
</regex>
</os>
</vendor>
<!-- EXTREME DEVICE MODEL & OS -->
<vendor name="Extreme">
<model>
<regex>
<value>#.*[Cc]onfiguration generated</value>
<range>2</range>
</regex>
<regex>
<value>[Bb]lackdiamond|[Ss]ummit|[Aa]lpine</value>
<range>*</range>
</regex>
</model>
<os>
<regex>
<value>[Vv]ersion.*[Bb]y</value>
<range>2</range>
</regex>
</os>
</vendor>
</regexlist>