[Contents] [Prev] [Next] [Index] [Report an Error]

Entering and Exiting Configuration Mode

You must have access privileges to edit the configuration. For more information, see Before You Begin.

To enter and exit configuration mode:

  1. At the CLI prompt, enter the configure operational mode command.

    Select the form of the configure command (see Table 14) that is appropriate for the way you want to edit and commit the candidate configuration. For example:

  2. To display the users currently editing the configuration, enter the status command:
    user@host# status
    Users currently editing the configuration:
      user1 terminal p1 (pid 66847) on since 2004-04-19 12:32:56 PDT
          [edit]
      user2 terminal p2 (pid 85743) on since 2004-04-19 11:44:06 PDT
          [edit interfaces]

    For each user, the CLI displays the username, terminal, process identifier, login date and time, and hierarchy level being edited. You can specify the terminal and process identifier in the request system logout command.

  3. To exit configuration mode and return to operational mode:

For more information about the configure command, including restrictions on entering and exiting the various configuration modes, see the JUNOS CLI User Guide.

Table 14: Forms of the configure Command

Command

Edit Access

Commit Access

configure

  • No one can lock the configuration. All users can make configuration changes.
  • When you enter configuration mode, the CLI displays the following information:
    • A list of the other users editing the configuration.
    • Hierarchy levels the users are viewing or editing.
    • Whether the configuration has been changed, but not committed.
  • No one can lock the configuration. All users can commit all changes to the candidate configuration.
  • If you and another user make changes and the other user commits changes, your changes are committed as well.

configure exclusive

  • One user locks the configuration and makes changes without interference from other users.
  • Other users can enter and exit configuration mode, but they cannot change the configuration.
  • If you enter configuration mode while another user has locked the configuration, the CLI displays the user and the hierarchy level the user is viewing or editing.
  • If you enter configuration mode while another user has locked the configuration, you can forcibly log out that user with the request system logout user operational mode command. (For details, see the JUNOS System Basics and Services Command Reference.)

configure private

  • Multiple users can edit the configuration at the same time.
  • Each user has a private candidate configuration to edit independently of other users.
  • When you commit the configuration, the Services Router verifies that the operational (running) configuration has not been modified by another user before accepting your private candidate configuration as the new operational configuration.
  • If the configuration has been modified by another user, you can merge the modifications into your private candidate configuration and attempt to commit again.

[Contents] [Prev] [Next] [Index] [Report an Error]