10-3
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 10 Configuring CSM Scripts
Configuring TCL Scripts
• Each script is always identified by its unique name. If two or more scripts have identical names, the
last loaded script is used by the CSM. When there are duplicate script names, a warning message is
generated by the CSM.
Writing TCL Scripts
The CSM Release 3.1(1a) TCL script feature is based on the TCL 8.0 source distribution software. CSM
TCL is modified so that it can be interrupted to call another process unlike the standard TCL library,
allowing for concurrent TCL interpreter execution. The CSM TCL library does not support any standard
TCL file I/O command, such as file, fcopy, and others. Table 10-1 lists the TCL commands that are
supported by CSM.
Table 10-1 TCL Commands Supported by the CSM
Command
Generic TCL Commands
append array binary break
catch concat continue error
eval exit expr fblocked
for foreach format global
gets if incr info
join lappend lindex linsert
list llength lrange lreplace
lsearch lsort proc puts
regexp regsub rename return
set split string subst
switch unset uplevel upvar
variable while namespace
Time-Related Commands
after clock time
Socket Commands
close blocked fconfigured fileevent
flush eof read socket
update vwait
UDP Command Set
udp bind handle
readable [script]
udp bind handle
writable [script]
udp connect host port udp close handle
udp info handle udp open [port] udp receive handle udp send handle [host
port] message
CSM-Specific Commands
ping enable real disable real