TCL Shell Ping on Cisco IOS
For testing purpose to know if every device in the network is reachable, we can use TCL shell on Cisco IOS. It does has been well documented, but it should be shown in my blog.
In global mode, we can type “tclsh” to enter to tclsh mode. Then, we type the script as following:
R1#tclsh
R1(tcl)#foreach address {
+>(tcl)#90.90.1.1
+>(tcl)#90.90.2.2
+>(tcl)#90.90.3.3
+>(tcl)#90.90.4.4
+>(tcl)#90.90.5.5
+>(tcl)#90.90.6.6
+>(tcl)#90.90.8.8
+>(tcl)#90.90.10.10 } { ping $address repeat 2 }Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 90.90.1.1, timeout is 2 seconds:
!!
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 90.90.2.2, timeout is 2 seconds:
!!
Discussion Area - Leave a Comment