beautypg.com

Configuration procedure, Configuration example – H3C Technologies H3C S3100 Series Switches User Manual

Page 561

background image

1-4

z

Periodic time range, which recurs periodically on the day or days of the week.

z

Absolute time range, which takes effect only in a period of time and does not recur.

An absolute time range on an H3C S3100 Series Ethernet Switches can be within the range 1970/1/1

00:00 to 2100/12/31 24:00.

Configuration procedure

Table 1-1 Configure a time range

Operation

Command

Description

Enter system view

system-view

Create a time range

time-range time-name { start-time to end-time
days-of-the-week [ from start-time start-date ] [ to
end-time end-date ] | from start-time start-date [ to
end-time end-date ] | to end-time end-date }

Required

Note that:

z

If only a periodic time section is defined in a time range, the time range is active only when the

system time is within the defined periodic time section. If multiple periodic time sections are defined

in a time range, the time range is active only when the system time is within one of the periodic time

sections.

z

If only an absolute time section is defined in a time range, the time range is active only when the

system time is within the defined absolute time section. If multiple absolute time sections are

defined in a time range, the time range is active only when the system time is within one of the

absolute time sections.

z

If both a periodic time section and an absolute time section are defined in a time range, the time

range is active only when the periodic time range and the absolute time range are both matched.

Assume that a time range contains an absolute time section ranging from 00:00 January 1, 2004 to

23:59 December 31, 2004, and a periodic time section ranging from 12:00 to 14:00 on every

Wednesday. This time range is active only when the system time is within the range from 12:00 to

14:00 on every Wednesday in 2004.

z

If the start time is not specified, the time section starts from 1970/1/1 00:00 and ends on the

specified end date. If the end date is not specified, the time section starts from the specified start

date to 2100/12/31 23:59.

Configuration example

# Define a periodic time range that spans from 8:00 to 18:00 on Monday through Friday.

system-view

[Sysname] time-range test 8:00 to 18:00 working-day

[Sysname] display time-range test

Current time is 13:27:32 Apr/16/2005 Saturday