Date created: 08/14/14 10:39:45. Last modified: 07/12/18 11:49:25

Repeat Command X Times

pe1.dc1#tclsh
pe1.dc1(tcl)#for {set x 0} {$x<240} {incr x} {
+>   after 60000
+>   puts [exec "show ver | i uptime"]
+>}
pe1.dc1 uptime is 32 minutes

pe1.dc1 uptime is 33 minutes

pe1.dc1 uptime is 34 minutes

pe1.dc1 uptime is 35 minutes

pe1.dc1 uptime is 36 minutes

Previous page: rand() with ios_config
Next page: TCP/SSH/VTY Sessions