< Home

period-range

Function

The period-range command creates a periodic time range.

The undo period-range command deletes a periodic time range.

Format

period-range start-time to end-time week-days &<1-7>

undo period-range { start-time to end-time [ week-days &<1-7> ] | all }

Parameters

Parameter Description Value
start-time Specifies the start time of the time range. It is in the format of hh:mm:ss. hh is an integer ranging from 0 to 23. mm is an integer ranging from 0 to 59. ss is an integer ranging from 0 to 59.
end-time Specifies the end time of the time range. It is in the format of hh:mm:ss. hh is an integer ranging from 0 to 23. mm is an integer ranging from 0 to 59. ss is an integer ranging from 0 to 59.
week-days Specifies the validity period of the time range. The value is as follows:
  • Number (0 to 6)

  • Monday to Sunday

  • Working days: Monday to Friday

  • Weekends: Saturday and Sunday

  • Daily: Monday to Sunday

all Indicates all periodic time ranges. -

Views

Time range view

Default Level

2: Configuration level

Usage Guidelines

A periodic time range specifies a fixed time segment in a week, and it occurs periodically at the interval of a week.

Multiple time ranges can share the one name. The time ranges sharing the same periodic time range name are logically ORed, and the periodic time range and absolute time range are logically ANDed.

Example

# Configure a time range that is valid between 8:00:00 and 18:00:00 on each working day.

<sysname> system-view
[sysname] time-range test
[sysname-time-range-test] period-range 8:00:00 to 18:00:00 working-day
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >