Using the CSS Scripting Language
The CSS includes a rich Scripting Language that you can use to write scripts to
automate everyday procedures. The Scripting Language is especially useful for
writing scripts used by script keepalives for your specific service requirements.
For details on script keepalives, refer to the Cisco Content Services Switch
Content Load-Balancing Configuration Guide.
Commands shown in the script examples are bolded for clarity.
Note
You can write scripts that use any command in the command line interface (CLI).
Scripts can also take advantage of logical blocks that run specific commands
based upon a set of conditionals and expressions.
This chapter contains the following major sections:
•
•
•
•
•
•
•
•
•
•
OL-5647-02
Script Considerations
Playing a Script
Using the Command Scheduler
Using the echo Command
Using Commented Lines
Using Variables
Using Logical and Relational Operators and Branch Commands
Special Variables
Using Arrays
Capturing User Input
C H A P T E R
Cisco Content Services Switch Administration Guide
8
8-1