Setting up a TCL(pronounced as “tickle”) script for CCIE Lab troubleshooting

TCL shell is available on Cisco IOS release 12.3(2)T and later.  So, you can run this on your routers but NOT on your switches.  This is a great tool, especially during Lab/simulation.  You will want to verify connectivity on your Lab network constantly.

So open up Notepad and copy/paste the ip address of every device/interface that you would like to ping. Alt + highlight with your mouse will allow you to copy in columns instead of the rows&columns.

The syntax for the TCL script is as follows:

R1#tclsh

R1(tcl)#foreach address {

1.1.2.166
1.1.2.167
1.1.2.164
1.1.2.165
1.1.2.170
1.1.2.171
1.1.2.168
1.1.2.169
1.1.2.174

} {ping $address}

You can copy/paste the entire output from your notepad into your telnet session. Hit <enter> after the last curly bracket “}” and the script is fired off very fast.

Here is Screencast of the TCL script in action.

Hope this helps!

This entry was posted in Networking, Routing and tagged . Bookmark the permalink.

One Response to Setting up a TCL(pronounced as “tickle”) script for CCIE Lab troubleshooting

  1. Dave Kosich says:

    You are the man Jeff.. Was just talking about TCL with Jeff S., and pointed him to your page. Pingjeffgrenne.com FTW!

Leave a Reply

Your email address will not be published. Required fields are marked *