This section provides an example for one user to configure services on a router after another user locks configurations.
As shown inFigure 1, both user A and user B log in to the router. After user A locks configurations on the router, user B attempts to configure services on the router.
To use the running database exclusively, lock configurations on the router to prevent other users from configuring services or committing configurations. In this case, the system displays a message indicating that the configuration is locked by a user when other users attempt to perform configurations. Other users can configure services in the running database only after you unlock configurations.
The configuration roadmap is as follows:
Simulate a situation in which user A locks configurations.
Simulate a situation in which user B configures a service.
<HUAWEI> configuration exclusive
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/4 [~HUAWEI-GigabitEthernet0/1/4] ip address 10.1.1.1 24 [*HUAWEI-GigabitEthernet0/1/4] commit Error: The configuration is locked by other user. [Session ID = 407]