AI, ML, Development + Cisco Learning Blog Learning about Machine Learning, Artificial Intelligence, related devlopment topics and formerly Routing and Switching, Datacenter, Security and other topics, CCIE #23664, Frank Wagner

2. September 2006

Checking connectivity with ping scripts

Filed under: Tips / Hints — ocsic @ 09:45

Some scripts are very usefull to test full reachability within routers and switches. On most routers there is a tclsh available and you can use is like this:

R1#tclsh
R1(tcl)#

foreach i {
150.1.8.8
150.1.7.7
150.1.5.5
150.1.4.4
150.1.3.3
150.1.2.2
150.1.1.1
} { puts [ exec „ping $i“ ] }

And then you can just copy and paste in your addresses. On some routers tclsh is not available. There you can use a ping macro:

SW1(config)#macro name PING
Enter macro commands one per line. End with the character ‚@‘.
do ping 150.1.1.1
do ping 150.1.2.2
do ping 150.1.3.3
do ping 150.1.4.4
do ping 150.1.5.5
do ping 150.1.7.7
do ping 150.1.8.8
@

SW1(config)#macro global apply PING
The last command executes the script. With this you can start pinging all your routers.

Keine Kommentare »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress