time-range domain-block name

Function

The time-range domain-block name command sets a time range for a domain.

The undo time-range domain-block command disables time range control for a domain or cancels a time range.

By default, time range control for a domain is disabled.

Format

time-range domain-block name range-name

undo time-range domain-block [ name range-name ]

Parameters

Parameter Description Value
name range-name

Specifies the name of the time range used by a domain. The value must be a time range configured by the time-range command.

The value is a string of 1 to 32 characters.

Views

AAA domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

After time range control is enabled, the domain enters the blocked state in a certain period. In this case, the users in the domain cannot access, and the users who have accessed have to go offline.

You can set multiple time ranges in a domain.

Example

# Set time ranges range 1 and range 2 and enable time range control.
<HUAWEI> system-view
[~HUAWEI] time-range range1 12:00 to 23:59 Mon
[*HUAWEI] time-range range2 09:00 to 21:00 working-day
[*HUAWEI] aaa
[*HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] time-range domain-block enable
[*HUAWEI-aaa-domain-huawei] time-range domain-block name range1
[*HUAWEI-aaa-domain-huawei] time-range domain-block name range2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >