cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1093
Views
0
Helpful
1
Replies

How to configure TCL script on IOS XE

ashish shirkar
Beginner
Beginner

How to configure below IOS script on IOS XE router 

foreach data {0000 1000 8080 ffff 5555} {ping x.x.x.x source x.x.x.x data $data size 500 repeat 1000 df}

1 Reply 1

Joe Clarke
Hall of Fame Cisco Employee Hall of Fame Cisco Employee
Hall of Fame Cisco Employee

You probably want:

Router#tclsh

Router(tcl)#foreach data {0000 1000 8080 ffff 5555} {set output [exec "ping x.x.x.x source x.x.x.x data $data size 500 repeat 1000 df"] ; puts $output; }

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers