TCL'ing Your Router
From Braindisconnect
Jump to navigationJump to search
"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