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:


foreach i {
} { 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
do ping
do ping
do ping
do ping
do ping
do ping

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