Show interface traffic


#1

In case anyone else might find this useful, I created operational commands to show a 5 second sample of ethernet/vif traffic.

Should be extendable to any interface that shows up in /proc/net/dev.

Install:

Output:

user@vyos:~$ show interfaces ethernet eth0 traffic
RX Mbps  : 274.2
RX PPS   : 36966
RX BPP   : 972
RX errors: 0
RX drops : 0

TX Mbps  : 87.0
TX PPS   : 30996
TX BPP   : 368
TX errors: 0
TX drops : 0

user@vyos:~$ show interfaces ethernet eth0 vif 80 traffic
RX Mbps  : 267.2
RX PPS   : 29045
RX BPP   : 1205
RX errors: 0
RX drops : 0

TX Mbps  : 68.2
TX PPS   : 27466
TX BPP   : 325
TX errors: 0
TX drops : 0

#2

Thank you microlinux,
very useful! Where I can find some piece of documentation about .def syntax of files in /opt/vyatta/share/vyatta-op/templates?

Thank you
Adriano


#3

Thanks for the useful information about interface traffic, I was looking for the same problem and here got the answer.


#4

Can you push this into appropriate vyos repository? or create custom repo?/package?

Cool feature anyway
Thanks :slight_smile: