2023-Nov-03-R11.1a
Create a Configuration Parser
This section introduces how to create a Configuration Parser to extract key metrics from configuration files of devices.
Example: Parse the version number of a router in its configuration file.
- Keep the default Traditional Devices node type and select Cisco Router from the Device Type list. By default, the All Device Types option is selected.

Tip: The system also supports defining a Parser to retrieve and parse SDN data through APIs. See Creating an API Parser to get details about API Parser.
- Select Configuration from the Parser Type dropdown menu.
- Select the data source to obtain the sample configuration file. See the Data Source for more reference.
- Click Retrieve and select a router to retrieve sample data.
- Highlight the version number in the sample data and click Define Keyword in the floating menu. The Keyword Parser dialog prompts with the following fields auto-populated.
- Sample — the sample command line where the variable stays.
- Parser — defines keywords and where a variable is located. The Keyword Parser Version $var1, RELEASE is created automatically. It contains the keywords Version and RELEASE that always stay the same and the variable $var1, which varies in different devices.
- Variable — the variable defined in the Parser. To change the auto-created variable name to a more meaningful name, rename the variable, such as from var1 to Version.
- Click Save Variable in the Keyword Parser dialog. This variable will be displayed in the variable tree.
- Click Save. The Parser will be saved in the Parser Library.
See also: