TCL'ing Your Router: Difference between revisions

From Braindisconnect
Jump to navigationJump to search
(Created page with "Category:Networking "Tcl stands for "tool command language" and is pronounced "tickle." Tcl is actually two things: a language and a library. First, Tcl is a simple textua...")
 
(No difference)

Latest revision as of 08:26, 2 March 2015

"Tcl stands for "tool command language" and is pronounced "tickle." Tcl is actually two things: a language and a library. First, Tcl is a simple textual language... Second, Tcl is a library package that can be embedded in application programs." - tcl.sourceforge.net/faqs

A simple Tcl ping script:

tclsh
foreach address {
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4
} {ping $address}

Remember to quit tcl after the script has finished or tcl may interfere with router commands:

tclq

You can get a list of ip's by editing the output from each router with:

sh ip alias