--:----:--Keyboard shortcuts (?)Fullscreen (f)

Run a predefined tcl script located in Cisco IOS directory by ssh-ing from a Linux host

by surfmoss
GNU/Linux ◆ xterm ◆ bash 1271 views

Command from a linux host: ssh 10.0.0.100 ‘tclsh flash:/rate.tcl’

10.0.0.100 is the switch The tcl script is located in flash:/ The name of the script is rate.tcl

The tcl script is below for reference. The interface utilization of g0/8 is being queried: proc int_rate {x} { for {set n 8} {$n<=$x} {incr n 0} { “show clock” “sh int g0/$n | i rate” } }

int_rate 8