Running Standalone Tcl Scripts; Halting Tcl Scripts - Cisco catalyst 6500 series Configuration Note

Content switching module
Hide thumbs Also See for catalyst 6500 series:
Table of Contents

Advertisement

Chapter 10
Configuring CSM 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:
Command
Step 1
Router(config-module-csm)#
module csm slot
Step 2
Router(config-module-csm)#
script file file-url
Step 3
Router(config-module-csm)#
show module csm slot script
task [ index script-index ]
[detail]
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:
Command
Step 1
Router(config-module-csm)#
module csm slot
Step 2
Router(config-module-csm)#
script task script-index
script-name [arg1 [arg2....]]
Step 3
Router(config-module-csm)#
show module csm slot script
[name script-name ] [code]
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:
OL-4612-01
Purpose
Specifies the module and slot number.
Loads the scripts into a script file.
Displays all the loaded scripts.
Purpose
Specifies the module and slot number.
Runs the script with any command line arguments.
Displays the content of all loaded scripts.
Catalyst 6500 Series Content Switching Module Configuration Note
Configuring TCL Scripts
10-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents