block

Function

The block command sets the status of the current domain to be block.

The undo block command restores the Active status of a local user.

By default, a newly-created domain is in the activated state.

Format

block

undo block

Parameters

None

Views

AAA domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

A domain can be in the active or block state. When the domain is in the block state, users cannot access it. If a domain is no longer used, set the state of the domain to be block. After the state of a domain is set to be block, all the users that have not accessed the domain are denied, and the users that have accessed the domain will be maintained and not affected.

Precautions

  1. Users in a domain cannot set the state of the domain to be block.
  2. If time segment blocking has been configured, the domain blocking function does not take effect.

Example

# Set the current domain to be in the block state.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >