11.3. Time Range Commands

11.3.1. time-range

Command Purpose

Use this command to create time range and enter time-range configuration mode.Use the no time-range command to delete the time range.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

time-range TIME-RANGE-NAME

no time-range

Parameter

Parameter Description

Parameter Value

TIME-RANGE-NAME

The name of the time range

String with up to 40 characters

Command Mode

Global Config

Default

None

Usage

A time range is used to determine a range of time during which a filter is effective.

Examples

This example shows how to create a time range with the name “my-time-range”:

Switch# configure terminal
Switch(config)# time-range my-time-range
Switch(config-tm-range)#

11.3.2. absolute

Command Purpose

Use this command to define the absolute time and date in time range.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

absolute ( start HH:MM:SS MONTH DAY YEAR ) ( end HH:MM:SS MONTH DAY YEAR )

Parameter

Parameter Description

Parameter Value

start

Starting time and date

-

end

Ending time and date

-

HH:MM:SS

Starting time or Ending time

Hour,minute,second in HH:MM:SS format HH is 0-23

MONTH

Month

1-12

DAY

Day

1-31(according to the month)

YEAR

Year

2000-2037

Command Mode

Time Range Configuration

Default

None

Usage

Comparing with the periodic time, choose an appropriate type.

Examples

This example shows how to define a time range started from 11:11:00 January 1 2023 and ended by 00:00:00 May 1 2024:

Switch# configure terminal
Switch(config)# time-range my-time-range
Switch(config-tm-range)# absolute start 11:11:00 jun 1 2023 end 00:00:00 may 1 2024

Related Commands

periodic

11.3.3. periodic

Command Purpose

Use this command to define the periodic time and date in time range.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

periodic HH:MM WEEKDAY to HH:MM ( WEEKDAY | )

periodic HH:MM ( weekdays | weekend | daily ) to HH:MM

Parameter

Parameter Description

Parameter Value

HH:MM

Starting time or Ending time

Hour,minute in HH:MM format HH is 0-23

weekdays

Monday thru Friday

-

weekend

Saturday and Sunday

-

daily

Every day of the week

-

WEEKDAY

Day of the week(First three letters of the weekday)

A case insensitive string of Monday -Sunday, at least 3 characters when using abbreviation.

Command Mode

Time Range Configuration

Default

None

Usage

Comparing with the absolute time, choose an appropriate type.

Examples

This example shows how to define a time range started from 00:00 Monday and ended by 18:00 Wednesday in weekly period:

Switch# configure terminal
Switch(config)# time-range my-time-range
Switch(config-tm-range)# periodic 00:00 mon to 18:00 wed

This example shows how to define a time range started from 09:00 and ended by 17:00 every day:

Switch# configure terminal
Switch(config)# time-range my-time-range
Switch(config-tm-range)# periodic 09:00 daily to 17:00

Related Commands

absolute

11.3.4. show time-range

Command Purpose

Use this command to show the information of time-range.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show time-range ( TIME-RANGE-NAME | )

Parameter

Parameter Description

Parameter Value

TIME-RANGE-NAME

the name of the time range.Show all the time ranges when the name is not specified

String with up to 40 characters

Command Mode

Privileged EXEC

Default

None

Usage

If no time range is specified, all time-ranges in the system should be shown.

Examples

This example shows how to display the information of all the time ranges:

Switch# show time-range

time-range range1
periodic 00:01 weekdays to 12:01

Related Commands

time-range