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,
0 comments:
Post a Comment