• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Learn Network Automation

  • Network Automation
    • Ansible Network Automation
      • Ansible Hosts File
      • What is Ansible?
    • Python Network Automation
      • Python for Network Engineers
    • Python Tutorial for Beginners
    • Terraform
    • pyATS
    • Docker
    • GIT
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • COURSES

TCL Script – Ping Test

Home » CCIE » CCIE Lab

One of the major parts of the CCIE Lab Exam is ensuring you have full reachability in your network.

How do you ping all your addresses?

TCL script or “Tickle Script” as it is usually pronounced is the answer to your problems.

It is a very simple process which should not take any longer than 5 mintues and will be invaluable at the end of the day.

  • Harvest all  your IP addresses
  • Create the TCL Script in Notepad
  • Paste the script into every device
  • Fix the networks that are unreachable
  • Pass the CCIE Lab Exam!

Maybe the last one is not as easy at that, anyway lets step through the process.

Harvest all your IP addresses

On each device run the command sh ip alias hold down the alt key and select the block of text that contains all the IP addresses and paste this into notepad

R1#sh ip alias
Address Type        IP Address      Port
Interface                150.19.8.8
Interface                183.19.28.8
R1#

Then add the following text to the notepad file

foreach address {
150.19.8.8
183.19.28.8
150.19.2.2
183.19.28.2
183.19.123.2} { ping $address
}

This has to be the exact syntax or it will fail.

foreach (space) {
1.1.1.12.2.2.2
3.3.3.3
4.4.4.4}(space){ping(space)$address

}

If you put an enter after the last curly bracket it will run the script right away – if you don’t you will have to hit enter on each device.

Then once you have all the IP’s from every one of your devices go onto one of your routers and enter the command tclsh this will drop you into the tcl shell.

R4#tclsh
R4(tcl)#

Then paste in the contents of your notepad file and hit enter

R4(tcl)#tclsh
R4(tcl)#foreach address {
+>150.19.2.2
+>183.19.28.2
+>183.19.123.2
+>150.19.1.1
+>183.19.17.1
+>183.19.123.1} { ping $address
+>}

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.19.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/58/60 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 183.19.28.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/59/60 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 183.19.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/57/61 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.19.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/114/117 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 183.19.17.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/113/116 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 183.19.123.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/115/120 ms
R4(tcl)#

Type tclquit to leave the tcl shell

It will take you less than 5 minutes to knock this together and if you run it a few times through your lab after you have dealt with redistribution it could highlight some potential issues.

If you want to reduce the pings from 5 to 2 simply add re 2 at the end of the ping command. I would leave it at the default of 5 as it runs pretty quick.

{ ping $address re 2

Good luck with your studies.

Roger

Category: CCIE LabTag: CCIE Lab, ping test, tcl script
Previous Post: « CCNA – Cisco Certified Network Associate
Next Post: Block P2P traffic on Cisco router »

Reader Interactions

Comments

  1. Derrick

    April 21, 2011 at 12:53 am

    Good information. Have you tried the ALT key in Putty? It appears to work for me. Best of luck on the lab.

  2. Euan

    June 24, 2013 at 3:00 am

    Alt+left mouse button drag allows you to column select in Putty. This can be configured in Windows -> Selection to be the inverse.

  3. ateet

    March 7, 2017 at 9:01 pm

    Very good post. Liked!!!

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Technical Architect focussed on Network Automation CCIE #50038
About Roger | Twitter | Linkedin

Recent Posts

  • Hashicorp Vault Tutorial
  • Ansible Tower vs Ansible Automation Platform
  • Cisco Certified DevNet Expert Getting Started Guide
  • Python for Network Engineers Course
  • Gitlab vs Github the Differences Explained

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible training course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Home

Blog

About

Contact

Network Tools

Python VENV Tutorial

Contact

Get in touch with me here

[email protected]

Buy me a coffeeBuy me a coffee

YouTube

Don’t forget to take a look at my YouTube Channel

youtube button

Tech

Best Vertical Mouse for RSI

Copyright © 2022 · Roger Perkin · All Rights Reserved · Powered by Mai Theme