repeat weekly

Sets the recurrence interval for weekly execution of the time profile on specified days in a week.
Syntax
repeat weekly { day | list-of-weekdays}
no repeat weekly { day | list-weekdays}
Command Default

By default, the system assumes a profile of type one-time, which executes only once.

Parameters
day
Specifies one day of the week for recurring execution of the time profile. Use a number (0-6) to represent days, with 0 for Sunday and 6 for Saturday.
list-of-weekdays
Specifies multiple days of the week for recurring execution of the time profile. Use numbers 0-6 to represent days, with 0 for Sunday and 6 for Saturday. Day numbers can be entered as a comma-separated list, a range, or a combination of both comma-separated list and range.
Modes

Time-profile-configuration mode

Usage Guidelines

During configuration of the time-profile, you may enter the repeat command at any point prior to entering the schedule command. On applying this configuration, the time profile type changes from default one-time to recurring. This command will be applied only if no other repeat configuration exists for the specified profile.

The no form of this command removes the weekly recurrence configuration.

Examples

The following example shows how to create a recurring time profile named "weekly", configuring the profile to execute the added commands, and scheduling the profile to run beginning July 31, 2024, and ending June 30, 2025.

device# configure terminal
device(config)# time-profile weekly
device(config-time-profile-week1y)# start-date 09-30-24
device(config-time-profile-week1y)# repeat weekly 1,3
device(config-time-profile-weekly)# execution-time 07:00
device(config-time-profile-week1y)# termination-date 09-30-25
device(config-time-profile-week1y)# command-list
device(config-time-profile-week1y-command-list)# add "ip dhcp-client disable"
device(config-time-profile-week1y-command-list)# add "ip dhcp-server enable"
device(config-time-profile-week1y-command-list)# exit
device(config-time-profile-week1y)# execution-time 09:30
device(config-time-profile-week1y)# schedule 
History
Release version Command history
10.0.20a This command was introduced.