Set Local Account Locked Status(SET OPLOCK)

Function

A configuration command that sets the lock/unlock status of non-default accounts of the NE.

Note

1. The local non-default accounts are the other operators except "admin" and "guest". The "admin" and "guest" are system default operators.

2. All other local operators are locked except "admin" and "guest".

3. If the local non-default account is locked, the local non-default account cannot perform any operation. If the local non-default account is unlocked, the local non-default account can perform related operations.

4. If the local non-default account is locked but a local non-default account has logged in, the user has to quit this command and has no authority to execute other commands.

Parameters

ID Name Description
LOCKST Lock state

Meaning: lock status of non-default user accounts to be set

Value range: off(unlock), on(Locked)

Explanation: When the non-default local accounts are locked, no local operators except admin/guest can perform any operation. If an operator has currently logged in, the operator must quit the command and cannot execute other commands.

Default value: on(Locked)

Example

1. Lock all non-default local accounts:
SET OPLOCK: LOCKST = on;
2. Unlock all non-default local accounts:
SET OPLOCK: LOCKST = off ;
Related reference
List Local Account Locked Status(LST OPLOCK)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.