EasyManuals Logo

Cisco Catalyst 6500 Series Configuration Note

Cisco Catalyst 6500 Series
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #125 background imageLoading...
Page #125 background image
10-9
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 10 Configuring CSM Scripts
Configuring TCL Scripts
Running Standalone TCL Scripts
The script file command may be stored in the startup configuration so that it will run when the CSM
boots. The script continues to run while the CSM is operating.
To run a TCL script when booting the module, perform this task:
This example shows how to run a script as a task when booting the CSM:
Router(config-module-csm)# configure terminal
Router(config-module-csm)# module csm 4
Router(config-module-csm)# script file tftp://192.168.1.1/httpProbe.test
One of the arguments of the script task command is script index, which is an integer between 1 and 100.
The script index is used to halt a specific executing script task instance using the no script task
command.
To run a standalone TCL script, perform this task:
This example shows how to run a script as a task when booting the CSM:
Router(config-module-csm)# configure terminal
Router(config-module-csm)# Module csm 4
Router(config-module-csm)# script task 1 RECURSIVE_TCL
As shown in the examples, use the show module csm slot script task index script-index detail and the
show module csm slot script name script-name code commands to display information about a specific
running script.
Halting TCL Scripts
To stop the script task, enter the no script task id command. The task object will be available for
troubleshooting and status even after the task finishes executing.
If you need to rerun the same script again, you must do the following:
Command Purpose
Step 1
Router(config-module-csm)#
module csm
slot
Specifies the module and slot number.
Step 2
Router(config-module-csm)#
script file
file-url
Loads the scripts into a script file.
Step 3
Router(config-module-csm)#
show module csm
slot
script
task [
index script-index
]
[detail]
Displays all the loaded scripts.
Command Purpose
Step 1
Router(config-module-csm)#
module csm
slot
Specifies the module and slot number.
Step 2
Router(config-module-csm)#
script task
script-index
script-name
[arg1 [arg2....]]
Runs the script with any command line arguments.
Step 3
Router(config-module-csm)#
show module csm
slot
script
[name
script-name
] [code]
Displays the content of all loaded scripts.

Table of Contents

Other manuals for Cisco Catalyst 6500 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 6500 Series and is the answer not in the manual?

Cisco Catalyst 6500 Series Specifications

General IconGeneral
BrandCisco
ModelCatalyst 6500 Series
CategorySwitch
LanguageEnglish

Related product manuals