[Prev][Next][Report an Error]

Edit Configuration Text

To edit the entire configuration in text format, select Configure > CLI Tools > CLI Editor. The main pane displays the configuration in a text editor (see Figure 31).

Note: After you make changes to the configuration in this window, you must commit the changes immediately for them to take effect. To commit all changes to the active configuration, select Commit Options > Commit. See Using the Commit Options to Commit Configuration Changes (J-Web Procedure) for details about all commit options.

Figure 31: CLI Editor Page

CLI Editor Page

Caution: We recommend that you use this method to edit and commit the configuration only if you have experience editing configurations through the CLI.

To edit the entire configuration in text format:

  1. Navigate to the hierarchy level you want to edit.
  2. Edit the candidate configuration using standard text editor operations—insert lines (with the Enter key), delete lines, and modify, copy, and paste text.
  3. Click Commit to load and commit the configuration.

    The device checks the configuration for the correct syntax before committing it.

When you edit the ASCII configuration file, you can add comments of one or more lines. Comments must precede the statement they are associated with. If you place the comments in other places in the file, such as on the same line after a statement or on a separate line following a statement, they are removed when you click Commit. Comments must begin and end with special characters. For more information, see the Junos OS CLI User Guide.


[Prev][Next][Report an Error]