linux网络流量实时监控工具之iptraf
2016-01-05 09:56
746 查看
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
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
相关文章推荐
- HTTPS和HTTP的区别
- 网络服务器开发总结
- web.config中httpRunTime的属性
- 80211无线网络权威指南——第一章 无线网络导论
- C# Http请求(WebClient,HttpWebRequest)
- IP中毒已深 手游怎么解毒?
- 【翻译自mos文章】私有网络所用的协议 与 Oracle RAC
- 有上下界的网络流
- KVM网络性能测试(3)
- SOCKET学习笔记1——TCP通讯
- http协议(三)
- 详解Python Socket网络编程
- 2015十大网络流行语,你最烦哪个?
- 2015年度十大网络流行语 你最烦哪个
- http requests初识与使用
- AsyncHttpClient, RequestParams ,AsyncHttpResponseHandler三个类使用方法
- http.createServer和http.Server
- juniper从入门到精通
- 网络爬虫基础
- 网络爬虫基本原理(一)