Checking Whether the commit Command Has Been Executed

Procedure

  1. In two-phase validation mode, check whether the commit command has been executed.

    After running configuration commands in two-phase validation mode, you must run the commit command to commit configurations. The commit status of configurations can be queried using configuration query commands.

    Run the system command to enter the system view and enable the two-phase validation mode.

    <HUAWEI> system-view
    Enter system view, return user view with return command.
    
    For example, after the following commands are run to add a user, the configuration command is not committed.
    [~HUAWEI] aaa 
    [~HUAWEI] local-user huawei password cipher Root@123
    Info: A new user is added.
    [*HUAWEI-aaa]
    Run the display configuration candidate command to query the configuration command that is not committed.
    [*HUAWEI-aaa] display configuration candidate
    aaa local-user huawei password cipher ******  //The configuration is not committed to the system. Therefore, the commit command needs to be run.
    [*HUAWEI-aaa] commit
    [~HUAWEI-aaa]
    If a configuration command is not committed after being run, a message is displayed asking you whether to commit it when you exit the system view. Enter Y or N as needed.
    [*HUAWEI] quit
     Warning: Uncommitted configurations found. Are you sure to commit them before exiting? [Y(yes)/N(no)/C(cancel)]:y

    If the fault persists after you run the commit command, go to Next.

Back Previous Next