repeat weekly
By default, the system assumes a profile of type one-time, which executes only once.
Time-profile-configuration mode
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.
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
| Release version | Command history |
|---|---|
| 10.0.20a | This command was introduced. |