linux網路流量即時監控工具之iptraf,網路流量iptraf

來源:互聯網
上載者:User

【轉】linux網路流量即時監控工具之iptraf,網路流量iptraf

linux網路流量即時監控工具之iptraf

IPTraf是一個網路監控工具,功能比nload更強大,可以監控所有的流量,IP流量,按協議分的流量,還可以設定過濾器等,如

對監控網路來說,這個更適合也更強大,但在總的流量顯示上,沒nload直觀和方便

官網及下載 http://iptraf.seul.org/download.html
ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/iptraf-3...

http://dl.wdlinux.cn:5180/soft/iptraf-3.0.0.tar.gz

源碼安裝
wget ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz
tar zxvf iptraf-3.0.0.tar.gz
cd iptraf-3.0.0
./Setup

yum方式安裝
yum install -y iptraf

使用
直接運行 iptraf
後有一個如下的菜單提示,然後進入相關的選項查看

 IP流量監視(IP traffic monitor)
網路介面的一般資訊統計(General Interface Statistics)
網路介面的細節資訊統計(Detailed Interface Statistics)
統計分析(Statistical Breakdowns)
區域網路工作站統計(LAN Station Statistics)
過濾器(Filters...)
配置(Configure...)
退出(Exit)

也可以直接加參數或選項直接進入
可以查看還有哪些參數和選項
[root@wdlinux iptraf-3.0.0]# iptraf -h

 Syntax:
iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |
-l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]

Issue the iptraf command with no parameters for menu-driven operation.
These options can also be supplied to the command:

-i iface - start the IP traffic monitor (use "-i all" for all interfaces)
-g - start the general interface statistics
-d iface - start the detailed statistics facility on an interface
-s iface - start the TCP and UDP monitor on an interface
-z iface - shows the packet size counts on an interface
-l iface - start the LAN station monitor ("-l all" for all LAN interfaces)
-B - run in background (use only with one of the above parameters)
-t timeout - when used with one of the above parameters, tells
the facility to run only for the specified number of
minutes (timeout)
-L logfile - specifies an alternate log file for any direct invocation
of a facility from the command line. The log is placed in
/var/log/iptraf if path is not specified.
-I interval - specifies the log interval for all facilities except the IP
traffic monitor. Value is in minutes.
-f - clear all locks and counters. Use with great caution.
Normally used to recover from an abnormal termination.

IPTraf 3.0.0 Copyright (c) Gerard Paul Java 1997-2004

本文串連:http://www.wdlinux.cn/old/iptraf

本人註:網路上大量的說明都是基於apache的,所以如果是nginx的話,所有的命令需要再後面加上-ng 。

例:iptraf-ng

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.