R12.1-2025July30

Command Mapping

When you upload files that contain abbreviated commands instead of full ones — for example, sh ver instead of show version, you can use Command Mapping to define full commands along with their possible abbreviations, ensuring that files are correctly parsed.

The main use flow is as follows:

  • Possible Names: Abbreviations of a full command. Multiple entries are supported, separated by semicolons.
  • Target Name: The full command corresponding to the abbreviation. Only one target name is supported.
  • Device Drivers: Users can select multiple device drivers or leave the field empty. If no driver is selected, the mapping applies to all drivers.
Information Note: You can perform the following operations on the added command mappings.

With the command mapping configured, the command can be correctly parsed.

Possible Name Details

For Possible Names, you can also enter regular expressions, which must be prefixed — for example, regex: sh ve\S+. You can also reference variables in regular expressions. For instance, regex[ $intf ]: sh intf (.+) allows you to define a Target Name using that variable, such as show interface $intf. This enables the conversion of commands like sh intf ethernet0/0 into the full form show interface ethernet0/0.