H3C S3100 Series Command Manual page 617

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Numeral (0 to 6)
Mon, Tue, Wed, Thu, Fri, Sat, and Sun
Working days (Monday through Friday)
Off days (Saturday and Sunday)
Daily, namely everyday of the week
from start-time start-date: Specifies the start date of an absolute time range, in the form of hh:mm
MM/DD/YYYY or hh:mm YYYY/MM/DD. The start-time start-date and end-time end-date argument
jointly define a period in which the absolute time range takes effect. If the start date is not specified, the
time range starts from 1970/01/01 00:00.
to end-time end-date: Specifies the end date of an absolute time range, in the form of hh:mm
MM/DD/YYYY or hh:mm YYYY/MM/DD. The start-time start-date and end-time end-date argument
jointly define a period in which the absolute time range takes effect. If the end date is not specified, the
time range ends at 2100/12/31 23:59.
Description
Use the time-range command to define a time range.
Use the undo time-range command to remove the specified or all time ranges.
Note that:
The switch supports up to 256 time ranges, each of which can have up to 32 periodic time ranges
and 12 absolute time ranges.
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.
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.
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 defines an absolute time section from 00:00 January 1, 2004 to 23:59
December 31, 2004, and a periodic time section from 12:00 to 14:00 every Wednesday. This time
range is active only when the system time is within 12:00 to 14:00 every Wednesday in 2004.
Examples
# Define a periodic time range that is active from 08:00 to 12:00 every working day.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] time-range tr1 08:00 to 12:00 working-day
# Define an absolute time range that is active from 12:00 January 1, 2008 to 12:00 June 1, 2008.
[Sysname] time-range tr2 from 12:00 1/1/2008 to 12:00 6/1/2008
# Display the configuration information of the time ranges.
[Sysname] display time-range all
Current time is 17:37:23 Nov/27/2007 Tuesday
1-25

Advertisement

Table of Contents
loading

Table of Contents