Chapter 8 Using the CSS Scripting Language
Script Considerations
8-2
Cisco Content Services Switch Administration Guide
OL-5647-02
•
Using Command Line Arguments
•
Using Functions
•
Bitwise Logical Operators
•
Syntax Errors and Script Termination
•
Using the grep Command
•
Using socket Commands
•
Displaying Scripts
•
Script Upgrade Considerations
•
Using the showtech Script
•
Script Keepalive Examples
Script Considerations
When you upgrade the CSS software, the old scripts remain in the old software
version’s /script directory. For details about copying the scripts from the old
software directory to the new software directory, see
“Script Upgrade
Considerations”
later in this chapter.
The CSS Scripting Language allows you to pass 128 characters in a quoted
argument. Assuming an average of seven characters per argument (plus a space
delimiter), you can potentially use a maximum of 16 arguments in one script.
Playing a Script
A script executes from within the /script directory on your local hard disk or flash
disk. Only scripts that you put in this directory are accessible to the
script play
command.
Use the
script play
command to execute a script line-by-line from the CLI in
SuperUser mode. You can also use this command to pass parameter values to a
script.
For example, enter:
#
script play
MyScript
“
Argument1 Argument2
”
You can display a list of available scripts using the
show script
command.