To immediately validate configurations, configure the immediate validation mode.
Before configuring a service, you must enter the system view. After the system view is displayed, the system initiates the corresponding configuration transaction based on the configured validation mode. In immediate validation mode, after you enter a command and press Enter, the system performs a syntax check. If the check is successful, the configuration immediately takes effect.
Configurations are locked in the user view.
To use the running database exclusively, lock configurations on the router to prevent other users from configuring services or committing configurations. Other users can configure services in the running database only after you unlock configurations.
To view information about the user who locked the configuration database, run the display configuration-occupied user command.
After locking configurations, you can edit and commit configurations. Other users can view and edit configurations but cannot commit configurations.
Other users can configure services in the running database only after you unlock configurations.
The immediate validation mode is configured.
To prevent a service from being affected, you can lock the configuration of the service as soon as the service process is initiated. When the configuration is being locked, configurations cannot be committed. The configuration of the service remains locked until the service process successfully starts. During this period, the configuration cannot be modified but can be viewed.
If the configuration fails to be committed, wait 30 seconds and commit the configuration again. If the configuration fails to be committed again, a user has locked the configuration.
In immediate validation mode, the command prompt is as follows:
<HUAWEI> system-view immediately Enter system view, return user view with return command. [HUAWEI]
After locking the configuration, you must unlock it after completing the configuration. Otherwise, configurations of other users cannot take effect.
A period after which the configuration database is unlocked automatically is configured.