Cisco 11503 Administration Guide - Page 270
Script Considerations, Playing a Script
UPC - 746320664958
View all Cisco 11503 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 270 highlights
Script Considerations Chapter 8 Using the CSS Scripting Language • 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. Cisco Content Services Switch Administration Guide 8-2 OL-5647-02