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

How to configure TCL script on IOS XE

ashish shirkar
Level 1
Level 1

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
Cisco Employee
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; }