Using CLI text boxes for configurations

The label “CLI text box” in the folder tree indicates that a command has non-modeled sub-commands.

Before you begin

While the system does not provide the normal user interface “widgets” (check boxes, lists, and so forth.) for these non-modeled sub-commands, the CLI text box option allows you to still use the subcommand by entering the appropriate native command language syntax.

Note: CLI text boxes allow you to enter and edit commands that are not modelled. CLI text boxes are included throughout the configuration catalog. Be sure to use a text box in the proper location/level of the catalog for the command you want to edit.

About this task

Use the following procedure to add commands using CLI text boxes.

Procedure

  1. Click a CLI text box label in the configuration catalog.

    The right pane shows information about the command, and an Add button.

  2. Click the Add icon (plus sign).

    The right pane expands to show a text entry field.

  3. Enter a valid native command language entry.

    For any free text fields, such as banners, descriptions, login prompts, or password prompts, you must use delimiting characters where appropriate. Consult the help for the IOS you are using for specific rules.

  4. Click Add again to create a new text box for a new line of code. Each line of code (command) must be entered in a separate text entry box.
  5. To view all commands for a configuration that includes information added via CLI text boxes, use the View Native Commands function.

What to do next

After a configuration change containing values entered using CLI text boxes is successfully pushed out to the network resource, the changes are applied to the running configuration just like any other configuration changes.

The next time the new configuration is edited, the values will be displayed in the same CLI text boxes (same hierarchical level) as they were originally added, unless you added a modelled command to the CLI text box. In this case, the data you added will be displayed with the modelled command.

To view all commands for a configuration that includes information added via CLI text boxes, use the View Native Commands function.