TCL Scripts

For those that don’t know, TCL (pronounced Tickle) is a method of creating and running scripts on Cisco devices, mainly routers and switches.

These can range to do anything from configuring device components to pinging remote addresses.

To write a script you need to go into the TCL Shell on a device, accessed from Priv EXEC mode by running the command: tclsh

You can also import scripts as text files in to the devices flash memory and remotely call them – either manually for through a KRON job (using the kron command) periodically

Below is a useful list of some scripts I have pulled together.

 

 

TCL Script: Ping

  Difficulty Rating:  Practical use case: To see what has connectivity in the network   Scenario: IGP and EGP routing protocols have converged and are stable. You now want to perform end-to-end connectivity testing to check for faults using ping (or traceroute)   Instructions: On each device run the command #show ip alias. This will …

Print Friendly, PDF & Email
Posted in Resources, TCL Scripts, Tips and Tricks | Leave a comment
Print Friendly, PDF & Email