R12.1-2025July30

Copy Parser in Command Diagnosis

Instead of creating a new Parser, you can select an existing Parser and copy it to NI (the system makes a hard copy of the existing Parser, so you can modify the Parser without affecting the original one). You can copy two types of Parsers:

  • Verified parsers, which have been tested by NIT decode engine. The Verified Parser will work in your network unless you upgrade the device's OS or the output format of the command changes.
  • Parser from Library, which are filtered by the device type and the command. 

Before copying parsers, you are recommended to select a CLI command from the list of Verified CLI Commands, which ensures at least one corresponding verified parser is available in the Related Parser area.

Verified Parser

The system can find the NIT that matches the device and command in the current Device & Command section from the results of the NIT decode engine.

The logic is to display the corresponding device and CLI command parser under each NIT as Parser.

Parser from Library

The matched parsers are the visual parsers filtered from the Parser Library by the device type and command of the current device.

Example: Copy a parser from library with the following steps:

1. Preview Parser

Click a matched parser in the list, then click Test. The values corresponding to all variables in the parser will be highlighted in the Original Sample Data by the selected Parser.

If the Original Sample Data is null, the sample data in the parser definition will be displayed in this area. At this time, the sample data will not be used as the NI's baseline data. After the baseline data is retrieved again, the preview effect of the parser will be displayed in the Baseline Data pane.

2. Copy Parser

Click OK. All the corresponding variable definitions in the Parser will be copied to the current command to generate variables.

3. Re-Copy Verified Parser

If the copied parsers are not what you need, you can also re-select a verified parser from the list of the Copy from Verified NI in the hamburger.

If there are multiple formats, the first format that matches the current device type and CLI command in the parsers will be set as the primary format. If no format matches successfully, all formats in the loaded parser will be displayed, and the primary format will remain unchanged. See Select Primary Format for a Parser In Intent Creation for more details.