No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.

Command Reference
CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Selecting a Mode for the Configuration to Take Effect

Selecting a Mode for the Configuration to Take Effect

The system allows configurations to take effect immediately or in two stages to ensure reliability of user configurations.

Before configuring a service, enter the system view. After the system view is displayed, the system initiates the corresponding configuration process based on the configured mode.

  • The immediate mode is the traditional mode.

    After you enter a command line and press Enter, the system performs the syntax check. The configuration takes effect as soon as it passes the syntax check.

  • In the two-stage mode, the system configuration process is divided into two stages.

    • In the first stage, a user enters command lines and the system performs syntax and semantics checks in the candidate database. If syntax or semantics errors are found in the command lines, the system displays a message on the terminal to inform the user of the error and the cause.

    • In the second stage, a user commits the configuration, and the system enters the configuration commitment stage. The system delivers configurations in the candidate database to a service. If the configurations take effect, the system adds them to the running database of the current system. During the configuration commitment stage, the system checks the configuration validity and displays messages when configurations in the candidate databases are identical with those in the running databases.

Table 2-1  Advantages and disadvantages of each mode
Mode Advantage Disadvantage

Immediate mode

The system can immediately detect the configuration impact on services.

Configuration errors impact services immediately because configurations take effect immediately. Besides, you cannot delete configurations from the services as a whole but have to delete commands one by one.

Two-stage mode

  • Allows several service configurations to take effect as a whole.
  • Allows users to preview configurations in the candidate database.
  • Clears a configuration that does not take effect if an error occurs or the configuration does not meet the expectation.
  • Minimizes the impact of configuration process on current services.

Configurations take effect only after the commit command is run.

In two-phase validation mode, you must run the commit command for the configuration to take effect. However, you do not need to run the commit command in the following cases:
  • Query commands (such as display interface) are run.
  • Maintenance commands (such as slave switchover, dual-active restore, stack upgrade fast rollback-timer, stack upgrade fast stack member, switch mode, and reset keepalive packets count) are run.
  • Commands are run to enter the existing views (such as the stack view and physical interface view) on a physical device. For example, the interface 10ge1/0/1 command is run.
  • The existing configurations on a device are reconfigured.

Immediate Mode

Run <HUAWEI> system-view immediately Enter system view, return user view with return command. [HUAWEI]system-view immediately, Enable the immediate mode.

In the immediate mode, the command prompt is as follows:

Two-Stage Mode

  1. Run system-view

    Enable the two-stage mode.

  2. (Optional) Run display configuration candidate [ merge ]

    Display all uncommitted configurations.

    If you specify the merge keyword, the command displays uncommitted configurations and committed configurations. If you do not specify the merge keyword, the command displays uncommitted configurations.

    You can edit the uncommitted configurations.

  3. (Optional) Run clear configuration candidate

    Delete all the uncommitted configurations.

    If you do not need to execute the uncommitted configurations in the current configuration process, you can delete them.

  4. (Optional) Run commit trial [ time ]

    Enable trial running of a system configuration.

    This configuration enables the trial running of new functions and services without interrupting the services running on the live network, which improves network reliability.

    To disable the trial running of the configuration before the trial running times out, run the abort trial command to roll the system configuration back to the configuration state before the trial running. To view the trial running status of a system configuration, run the display configuration trial status command.

  5. Run commit

    Commit configurations.

In the two-stage mode, if the user has modified configurations but has not submit the modification, the system prompt ~ is changed to *, prompting the user that the configurations are not submitted. After the user runs the commit command to submit the configurations, the system prompt * is restored to ~.

The following is an example:

<HUAWEI> system-view
Enter system view, return user view with return command.
[*HUAWEI] commit
The symbol * has two meanings:
  1. When * is displayed in an interactive operation, it indicates the configurations that have not been submitted.
  2. After the display current-configuration inactive or display current-configuration all command is executed, * in the command output indicates offline configuration.

  • In both the immediate mode and two-stage mode, the system can lock the configuration of a service as soon as the service process is initiated, to prevent a service from being affected. When the configuration is locked, users can query configurations but cannot edit or commit configurations. If configurations fail to be committed, waiting for 30 seconds and committing configurations again are recommended. If configurations fail to be committed again, it indicates that the configuration is locked by a user.

  • You can run the configuration exclusive command to lock a configuration. If a configuration is locked by another user, ask the user to unlock it.

  • In two-phase configuration mode, when you perform the same configurations for multiple users, only the configuration committed first takes effect. For other users, the system prompts a configuration conflict.
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 102939

Downloads: 412

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next