< Home

configuration-occupied timeout

Function

The configuration-occupied timeout command sets the timeout period before the system automatically unlocks the configuration set.

The undo configuration-occupied timeout command restores the default timeout period.

By default, the timeout period is 30 seconds.

Format

configuration-occupied timeout timeout-value

undo configuration-occupied timeout

Parameters

Parameter Description Value

timeout-value

Specifies the timeout period before the system automatically unlocks the configuration set.

The value is an integer ranging from 1 to 7200, in seconds. By default, the timeout period is 30 seconds.

Views

System view

Default Level

3: Management level

Usage Guidelines

Running the configuration-occupied timeout command can set an allowable maximum period when no commands are delivered by the user that locks the configuration set. After the timeout period expires, the configuration set is automatically unlocked and other users can normally run commands.

You can run the configuration-occupied timeout command in one of the following scenarios:
  • When a user without configuration access runs this command, the system prompts an error message.
  • If the configuration set is locked by another user, this command becomes invalid, and the system prompts an error message when the command is run.
  • If the configuration set is locked by the current user, the current user can run this command.
When running the configuration-occupied timeout command, note that:
  • If the timeout period is too short, the configuration set is unlocked after a short period during which no command is run by the user that locks the configuration set.
  • If the timeout period is too long, the configuration set remains locked and other users cannot obtain configuration access for a long period during which no command is run by the user that locks the configuration set.
  • After this command is run, all users (except the user that runs this command) cannot configure commands because the configuration set is locked.

Example

# Set the timeout period before the system automatically unlocks the configuration set to 120 seconds.

<sysname> system-view
[sysname] configuration-occupied timeout 120
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >