Command Manual (For Soliton) – ACL
H3C S3100 Series Ethernet Switches
Chapter 1 ACL Configuration Commands
1-29
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:
z
The switch supports up to 256 time ranges, each of which can have up to 32
periodic time ranges and 12 absolute time ranges.
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 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
Time-range : tr1 ( Inactive )
08:00 to 12:00 working-day
Time-range : tr2 ( Inactive )
From 12:00 Jan/1/2008 to 12:00 Jun/1/2008