Friday, January 13, 2012

How to create a TCL script in router for ping ?


Router ios version 12.3 or higher version are support TCL script on router. To write a simple TCL script for ping different interfaces or devices use that code----

foreach address
{
x.x.x.x
x.x.x.x
x.x.x.x
.
.
}
{ping $address}


write this code on a notepad file and fill the x.x.x.x with the ip address which want you ping.
like--
foreach address{
192.168.1.2
192.168.2.2
192.168.3.2
}{ping $address}

Now use the script-
1.-> Enter  <tclsh> command on router privilege mode- 
Router#tclsh
Router(tcl)#
2.-> select the notepad code , paste it on router console screen..
and router ping that address automatically.



For Further Reading,
General, How To, Networking

0 comments:

Post a Comment


 

Site Status

Man Behind Technical Today

Hello, I am Navin Bansal. I am a student of MCA in Rajsthan Institute of Engineering and Technology and owner of this blog. I share my view and ideas among people.