Writing 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

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.
supported by CSM.
Table 10-1 TCL Commands Supported by the CSM
Command
Generic TCL Commands
append
catch
eval
for
gets
join
list
lsearch
regexp
set
switch
variable
Time-Related Commands
after
Socket Commands
close
flush
update
UDP Command Set
udp bind handle
readable [script]
udp info handle
CSM-Specific Commands
ping
OL-4612-01
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.
array
concat
exit
foreach
if
lappend
llength
lsort
regsub
split
unset
while
clock
blocked
eof
vwait
udp bind handle
writable [script]
udp open [port]
enable real
Table 10-1
binary
continue
expr
format
incr
lindex
lrange
proc
rename
string
uplevel
namespace
time
fconfigured
read
udp connect host port
udp receive handle
disable real
Catalyst 6500 Series Content Switching Module Configuration Note
Configuring TCL Scripts
lists the TCL commands that are
break
error
fblocked
global
info
linsert
lreplace
puts
return
subst
upvar
fileevent
socket
udp close handle
udp send handle [host
port] message
10-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents