Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

TCL and Extended Traceroute

I am trying to setup a TCL script that will do a extended traceroute to multiple sites to test PBR changes i will be making. 

The script needs to take a list of IP address and run an extended traceroute to each.  I need to source the traceroute from a particular address. 

Does anybody have any examples for this? 

  • Network Management
Everyone's tags (2)
1 REPLY
Cisco Employee

Re: TCL and Extended Traceroute

Something like this should do.  This script will take a list of addresses starting with the source address.

set source [lindex $argv 0]

foreach addr [lrange $argv 1 end] {

    traceroute $addr source $source

}

Save this into a file, then run it like:

Router#tclsh tr.tcl source_ip addr1 addr2 ...
829
Views
0
Helpful
1
Replies
This widget could not be displayed.