Cisco 11503 Administration Guide - Page 271
Using the Command Scheduler
UPC - 746320664958
View all Cisco 11503 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 271 highlights
Chapter 8 Using the CSS Scripting Language Using the Command Scheduler Using the Command Scheduler You can schedule the execution of CLI commands to schedule periodic content replication, the gathering of statistics, and scheduled configuration changes. 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; the record includes the command string and a provision about when to execute the commands. 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 scheduled for execution only upon completion of its shell. Use the show lines command to display information about active pseudo-shells. 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 weekday "commands..." {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 with a maximum of 16 characters. • minutes - The minute of the hour to execute this command. Enter an integer from 0 to 59. • hour - The hour of the day. Enter an integer from 0 to 23. • day - The day of the month. Enter an integer from 0 to 31. • month - The month of the year. Enter an integer from 1 to 12. • weekday - The day of the week. Enter an integer from 1 to 7. Sunday is 1. OL-5647-02 Cisco Content Services Switch Administration Guide 8-3