Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Dec 10, 2023 5:13 am


FreeBSD tutorials and how-tos

Author Message
admin
Post  Post subject: FreeBSD: monitor network interface traffic throughput - exploring systat  |  Posted: Mon Feb 02, 2015 7:17 pm
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
 

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





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD: monitor network interface traffic throughput - exploring systat"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD ifconfig display capability and supported media types for an interface

debuser

0

5329

Thu Jul 08, 2010 6:26 am

debuser View the latest post

There are no new unread posts for this topic. FreeBSD - Collecting hardware information

LaR3

0

12912

Wed Aug 05, 2009 2:40 pm

LaR3 View the latest post

There are no new unread posts for this topic. FreeBSD - Can't locate Mail/Header.pm in @INC (@INC contains:

mandrei99

0

2927

Thu Jul 29, 2010 3:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD portupgrade packages with manual dependencies

LaR3

0

2007

Wed Aug 05, 2009 11:07 am

LaR3 View the latest post

There are no new unread posts for this topic. FreeBSD portupgrade without port vulnerability check

mandrei99

0

2484

Thu Mar 18, 2010 6:12 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: Apache 2.2.15 (custom location) + mod_fcgid

debuser

0

2122

Thu Jul 22, 2010 1:07 pm

debuser View the latest post

There are no new unread posts for this topic. FreeBSD: php 5.3.2 configure error: xml2-config not found. Please check your libxml2 installation.

debuser

0

2553

Thu Jul 22, 2010 1:41 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO