Thursday, November 10, 2011

Summarize Router Throughput in Packets/Second

Here's a quick one-liner to summarize the current packets-per-second throughput on an entire IOS router:

$ ssh 'sh int summ' | awk '/^*/{RXPPS+=$8;TXPPS+=$10} END {print "RXPPS=" RXPPS,"TXPPS=" TXPPS}'
jswan@'s password:
RXPPS=1613 TXPPS=1539


viny said...

very nice, thanks ! :)

Kam Log. said...

You describe it perfectly.
London dominatrix