22-26
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 22 Administering the Switch
TCL Scripting
Entering TCL Commands
You must enter the TCL commands using the TCL shell. To open the TCL shell, perform this task in
privileged mode:
This example shows how to open the TCL shell:
Console> (enable)
tclsh
Console> (tclsh)(enable)
To close the TCL shell, perform this task in privileged mode:
This example shows how to close the TCL shell:
Console> (enable)
tclquit
Console> (enable)
Table 22-3
TCL Commands
append
array
auto answer
break
case
catch
concat
continue
echo
error
eval
expr
for
foreach
global
if
incr
info
join
lappend
lindex
linsert
list
llength
lrange
lreplace
lsearch
lsort
proc
puts
regexp
regsub
return
scan
source
split
string
subst
tformat
trename
tset
tswitch
unset
uplevel
upvar
while
Task
Command
Open the TCL shell.
tclsh
Task
Command
Close the TCL shell.
tclquit