Cisco Interace Throughput

expect-cisco.sh - This expect script will show the current throughput rate of a given interface and output drop rate. It can Telnet or SSH to a device and execute "show int fa0/21" (for example). The out put shall be "grep'ed" for the bytes received/sent and output drops. The difference in the figures gathered each second is the amount of traffic traversing the port (it a delta).

There is a variation I made of this script here, which performs the same process but on a Linux based host using the 'ifconfig' command.

The code is below with an example output, is using iPerf to perform a 1Mbps UDP test;