FreeBSD: monitor network interface traffic throughput - exploring systat
FreeBSD has a builtin utility called "systat" for retrieving system statistics: CPU cycles, disk I/O, virtual memory, TCP/IP statistics.
Interface traffic flowing throughput can be shown with "systat -if 1". First argument informs systat to use interface display and the second the refresh time - 1second.
Command manual:
Quote:
NAME
systat -- display system statistics
SYNOPSIS
systat [-display] [refresh-interval]
DESCRIPTION
The systat utility displays various system statistics in a screen ori-
ented fashion using the curses screen display library, ncurses(3).
While systat is running the screen is usually divided into two windows
(an exception is the vmstat display which uses the entire screen). The
upper window depicts the current system load average. The information
displayed in the lower window may vary, depending on user commands. The
last line on the screen is reserved for user input and error messages.
By default systat displays the processes getting the largest percentage
of the processor in the lower window. Other displays show swap space
usage, disk I/O statistics (a la iostat(8)), virtual memory statistics (a
la vmstat(8)), TCP/IP statistics, and network connections (a la
netstat(1)).
Input is interpreted at two different levels. A ``global'' command
interpreter processes all keyboard input. If this command interpreter
fails to recognize a command, the input line is passed to a per-display
command interpreter. This allows each display to have certain display-
specific commands.
Command line options:
-display The - flag expects display to be one of: icmp, icmp6,
ifstat, iostat, ip, ip6, netstat, pigs, swap, tcp, or
vmstat. These displays can also be requested interac-
tively (without the ``-'') and are described in full
detail below.
...
Check FreeBSD network interfaces throughput:
Code:
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average
Interface Traffic Peak Total
lo0 in 0.000 KB/s 0.000 KB/s 316.872 KB
out 0.000 KB/s 0.000 KB/s 316.872 KB
vmx1 in 0.000 KB/s 0.000 KB/s 0.117 KB
out 0.000 KB/s 0.000 KB/s 0.041 KB
vmx0 in 43.968 KB/s 62.046 KB/s 4.587 GB
out 6.871 MB/s 6.935 MB/s 16.177 GB
The command offers both ingress and egress statistics for all FreeBSD system interfaces as well as loopback.
To exit the command, ^C or type :q and enter.
_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com