How can I know the traffic in an interfce via CLI?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
  • (Edited)
I need to know what cli command can I use to know how much traffic is paasing throughtan interface (wifi0) in a moment.

somebody can help me?

Regards
Photo of andres gomez

andres gomez

  • 6 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Simon Hogg

Simon Hogg

  • 13 Posts
  • 8 Reply Likes
Not sure there are other options, but "sh interface wifi0.1"  on the AP will give the raw details...but the stats you get there are cumulative, so you need to take multiple measures and calculate the differences to see what the traffic actually is over time...not very feasible really.

Results: 
Rx bytes=4075465242 (3.796 GB); Tx bytes=2312352101 (2.154 GB);

Realisitically, you would be much better off using Cacti/Munin/Nagios or similar which can conncet via SNMP and do the calculations for you and graph it all nicely...but that may be too much work if this is a one-off requirement.
Photo of andres gomez

andres gomez

  • 6 Posts
  • 0 Reply Likes
Thanks Simon!!

Too bad that we can monitor in a real time (by console) the traffic in a simple way.

Regards,