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”
}
}