Cisco Systems 78-11424-03 Network Router User Manual


 
2-47
Cisco Content Services Switch Basic Configuration Guide
78-11424-03
Chapter 2 Configuring User Profiles and CSS Parameters
Configuring the Command Scheduler
Configuring the Command Scheduler
Use the cmd-sched command to configure the scheduled execution of any CLI
commands, including playing scripts. The commands that will be executed are
referred to as the command string. To schedule commands, you must create a
configuration record, which includes a provision as to when to execute the
commands, and the command string.
For example, you can use this command to schedule periodic content replication,
the gathering of statistics, and scheduled configuration changes. At the specified
time, the command scheduler executes a command string by creating a
pseudo-login shell where each string is executed. A cmd-sched record is only
scheduled for execution upon completion of its shell. Use the show lines
command to display information about active pseudo shells (refer to “Showing
Current Logins” in Chapter 1, Logging in and Getting Started).
Note To terminate the execution of a command string, use the disconnect
command.
The syntax and options for this global configuration mode command are:
cmd-sched - Enable command scheduling.
cmd-sched record name minute hour day month weekdaycommands...”
{logfile_name} - Create a configuration record for the scheduled execution of
any CLI commands, including the playing of scripts.
The variables are listed below. When entering minute, hour, day, month, and
weekday variables, you may enter a single integer, a wildcard (*), a list separated
by commas, or a range separated by a dash (-).
name - The name of the configuration record. Enter an unquoted text string
up to 16 characters.
minutes - The minute of the hour to execute this command. Valid numbers are
from 0 to 59.
hour - The hour of the day. Valid numbers are from 0 to 23.
day - The day of the month. Valid numbers are from 0 to 31.
month - The month of the year. Valid numbers are from 1 to 12.
weekday - The day of the week. Valid numbers are from 1 to 7. Sunday is 1.