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,
- Why We used areas in OSPF routing protocol?
- How to create a TCL script in router for ping ?
- How to configure GNS3 to a virtual box client.
- Spring Framework - MethodReplacer Example in spring
- Spring Framework - Example of Database Connectivity with DataSource
- Spring Framework- Execption handling in AOP
- Spring Framework - Example to use @Before annotation with args() in AOP
- Spring Framework-Example to use JoinPoint in AOP
- What is XML ?
- How to insert a record in table using hibernate.
- How to write hibernate code in java application
- How to set Hibernate environment in java application
- How to import xml file in another xml ?
- Difference among Point to Point,Broadcast and Non-broadcast multiaccess networks
- Command to enable OSPF Routing protocol on Router interface mode
0 comments:
Post a Comment