R12.1-JA-2025June05

Types of Parser

The system allows you to define the following nine types of Parsers to parse variables. For each type of Parser, a set of rules work together to define how variables are extracted from Sample data text. With valid rules, the output of the Parser will be highlighted instantly inside the input text. You can select a parser pattern from the + New Pattern menu. 

The following parser patterns will be briefly summarized in this section. 

Auto Pattern

In Auto Parser, the system will automatically guess and generate a parser pattern based on the selected words. Support single/multiple type and switching between these two types. For more information, see Auto Parser.

Single Variable

A Variable Parser can parse a single-value variable, such as version number, etc., by anchoring keywords before and after the variable. See Define a Variable Parser for more details.
 

Paragraph

A Paragraph Parser can parse variables in recurring paragraphs, such as collisions and CRC errors for interfaces, etc., by anchoring paragraph identifier (ID) lines. See Define a Paragraph Parser for more details.

Table

A Table Parser can parse table-formatted text, such as NDP table, VRF table, etc. See Define a Table Parser for more details.


Collector

A Collector Parser can find all matched items based on the defined keywords, automatically group those items by keyword value, and parse the required variables based on the groups. See Define a Collector Parser for more details.

JSON Table

JSON table Parser is used to parse JSON format text, such as Cisco ACI, AWS, and so on. 
 

Dependency

In dependency pattern, the parser results of different patterns can be merged in the parsing process to get the desired output, which will be a table variable constructed with all the variables in all the level patterns.


Merge Table

In Merge Table pattern, you can merge the table variables from two parser output tables by paired keys, enabling the combination of config-lets from different paragraphs as well.

Append Table

Append Table is a new parser pattern. This pattern can be used to append the table rows of one parser output table to another parser output table, then a new table is created. For the two selected output tables, the row cell with the same column title will be appended, otherwise, the cell will be left empty. 

Aggregate Table

Aggregate Table is a pattern that can merge table rows of an output table by a column key and remove some columns from the parser output.