Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


The periodic Command

Jul 08,2009 by alperen

image


The periodic command is used to specify a recurring range of days and times to be included in the time-range created in the previous command. Using this command allows a feature to be implemented on only certain days of the week and within certain hours. The command is issued in the Time-Range Configuration mode, which is activated by the time-range command. The syntax is

Router(config-time-range)#periodic days-of-the-week hh:mm to [days-of-the-week] hh:mm

days-of-the-week

Used to define the days included in the time-range

hh:mm

Defines the beginning or ending time of the time range. hh is the 24-hour time and mm is the minute.

The first occurrence of the hh:mm argument is the starting hours:minutes that the time range is in effect. The second occurrence is the ending hours:minutes the statement is in effect. Times are expressed using the 24-hour clock; therefore, 8:00 P.M. would be typed as 20:00. The keyword to is required to complete the range, as in start-time to end-time.


Note 

Remember, all time specifications are interpreted as local time. To ensure the time range entries take effect at the desired times, the software clock should be synchronized using the Network Time Protocol (NTP) or some other authoritative time source.

The days-of-the-week argument can seem complicated until you become used to it. Used properly, this can be used to represent a single day or combination of days using the following keywords:

Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday— day names

daily Monday through Sunday

weekdays Monday through Friday

weekend Saturday and Sunday

The following examples should help you understand the process. The following lines create a time range for a single day named MondayDays, and then define the day and hours (8:00 A.M. to 5:30 P.M.).

Router(config)#time-range MondayDays
Router(config-time-range)#periodic monday 8:00 to 17:30

When multiple days can be defined by the keywords daily, weekday, and weekend, the keyword is used. The next lines creates a time range named WeekdayEves, and then define hours (5:00 P.M. to 10:00 P.M.). In this example, the feature is to be implemented Monday through Friday.

Router(config)#time-range WeekdayEves
Router(config-time-range)#periodic weekdays 17:00 to 22:00

When multiple days other than those defined by the keywords daily, weekday, and weekend are required, the days are listed separated by spaces. The next lines create a time range named TuThuEves and then defines the days and hours (5:00 P.M. to 10:00 P.M.).

Router(config)#time-range TuThuEves
Router(config-time-range)#periodic tuesday thursday 17:00 to 22:00

With a recurring time range on consecutive days, other than those defined by the keywords, the days are also listed separated by spaces. The next lines create a time range named SunMonTue and then define the hours (5:00 P.M. to 10:00 P.M.) included each day.

Router(config)#time-range SunMonTue
Router(config-time-range)#periodic sunday monday tuesday thursday 6:00 to 9:00

With a time range that “spans” consecutive days, the optional days-of-the-week after the to is used. The next lines create a time range named MonToWed, and then define the start and ending time as 8:00 A.M. Monday to Wednesday at 5:00 P.M.

Router(config)#time-range MonToWed
Router(config-time-range)#periodic Monday 8:00 to Wednesday 17:00

Multiple periodic entries are allowed per time-range command.


265 times read

Related news

» access-list cisco Time-Based ACLs Using Time Ranges
by alperen posted on Jul 26,2009
» Define a Time Range
by alperen posted on Jul 08,2009
» The absolute Command
by alperen posted on Jul 08,2009
» Time-Based Access Lists
by alperen posted on Jul 08,2009
» Using Time-Based Access-Lists
by admin posted on Jul 21,2008
Did you enjoy this article?
(total 0 votes)

comment Comments (0 posted) 

More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author