10.1.15.12-06212024

Visual Parser

Visual Parser uses NetBrain-specific grammar to turn plain text (such as device CLI command output, SNMP output, or configuration file text) into programable variables and enable "What you see is what you can program" with no or little coding. It enables network engineers familiar with the parsing grammar to parse the configuration file, CLI command output, SNMP output, and API output for most automation problem resolutions.

Definition Flow of Visual Parser

The UI of the Visual Parser editor consists of several functional areas. Take the definition of Paragraph Parser as an example:

The general flow of Parser definition is as follows:

  1. Define basic Parser information.
  2. Define Parser Qualification in the Qualification and Test area.
  3. Select the data source in the Data Source area and retrieve sample text from command output or device configuration in the Command and Device area. The retrieved sample text of command output or device configuration is displayed in the Parser Input area.
  4. Double-click a variable or select several words from the Parser Input area to enter auto parser mode, then a line pattern will be automatically created. The parser pattern will be automatically determined in this step. 
  5. Confirm the auto parser definitions.
  6. Continue to create line pattern in the add-on parser mode: Double-click or select a line of text where the target variable resides in the Parser Input area and corresponding line pattern will be created based on the selected variable.
  7. Edit line patterns to define variables and preview the parsed result in the Output area.
  8. Define more formats for the parser.
  9. Save the parser.
    Information Tip: See Parser Discovery for how to find and request a Parser effectively.